Skip to content

Commit

Permalink
Ensure that test_suite.pt only tries to build controllers which have …
Browse files Browse the repository at this point in the history
…Makefiles. (#6666)

Switching between master and develop branches can result in controller directories sticking around that only contain the results of a build on the previous branch. test_suite.py was trying (and failing) to run make in those directories.
  • Loading branch information
brettle authored Sep 21, 2024
1 parent 3c4a3c0 commit 8977e52
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/api/controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
DIRECTORIES=$(dir $(wildcard */Makefile))
TARGETS = $(DIRECTORIES:=.Makefile)

.PHONY: release debug profile clean
Expand Down
2 changes: 1 addition & 1 deletion tests/cache/controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
DIRECTORIES=$(dir $(wildcard */Makefile))
TARGETS = $(DIRECTORIES:=.Makefile)

.PHONY: release debug profile clean
Expand Down
2 changes: 1 addition & 1 deletion tests/other_api/controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
DIRECTORIES=$(dir $(wildcard */Makefile))
TARGETS = $(DIRECTORIES:=.Makefile)

.PHONY: release debug profile clean
Expand Down
2 changes: 1 addition & 1 deletion tests/parser/controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
DIRECTORIES=$(dir $(wildcard */Makefile))
TARGETS = $(DIRECTORIES:=.Makefile)

.PHONY: release debug profile clean
Expand Down
2 changes: 1 addition & 1 deletion tests/physics/controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
DIRECTORIES=$(dir $(wildcard */Makefile))
TARGETS = $(DIRECTORIES:=.Makefile)

.PHONY: release debug profile clean
Expand Down
2 changes: 1 addition & 1 deletion tests/protos/controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
DIRECTORIES=$(dir $(wildcard */Makefile))
TARGETS = $(DIRECTORIES:=.Makefile)

.PHONY: release debug profile clean
Expand Down
2 changes: 1 addition & 1 deletion tests/rendering/controllers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
DIRECTORIES=$(dir $(wildcard */Makefile))
TARGETS = $(DIRECTORIES:=.Makefile)

.PHONY: release debug profile clean
Expand Down

0 comments on commit 8977e52

Please sign in to comment.