Skip to content

Commit 8977e52

Browse files
authored
Ensure that test_suite.pt only tries to build controllers which have 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.
1 parent 3c4a3c0 commit 8977e52

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

tests/api/controllers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
15+
DIRECTORIES=$(dir $(wildcard */Makefile))
1616
TARGETS = $(DIRECTORIES:=.Makefile)
1717

1818
.PHONY: release debug profile clean

tests/cache/controllers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
15+
DIRECTORIES=$(dir $(wildcard */Makefile))
1616
TARGETS = $(DIRECTORIES:=.Makefile)
1717

1818
.PHONY: release debug profile clean

tests/other_api/controllers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
15+
DIRECTORIES=$(dir $(wildcard */Makefile))
1616
TARGETS = $(DIRECTORIES:=.Makefile)
1717

1818
.PHONY: release debug profile clean

tests/parser/controllers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
15+
DIRECTORIES=$(dir $(wildcard */Makefile))
1616
TARGETS = $(DIRECTORIES:=.Makefile)
1717

1818
.PHONY: release debug profile clean

tests/physics/controllers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
15+
DIRECTORIES=$(dir $(wildcard */Makefile))
1616
TARGETS = $(DIRECTORIES:=.Makefile)
1717

1818
.PHONY: release debug profile clean

tests/protos/controllers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
15+
DIRECTORIES=$(dir $(wildcard */Makefile))
1616
TARGETS = $(DIRECTORIES:=.Makefile)
1717

1818
.PHONY: release debug profile clean

tests/rendering/controllers/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
DIRECTORIES=$(subst test_suite_supervisor,,$(subst Makefile,,$(shell ls)))
15+
DIRECTORIES=$(dir $(wildcard */Makefile))
1616
TARGETS = $(DIRECTORIES:=.Makefile)
1717

1818
.PHONY: release debug profile clean

0 commit comments

Comments
 (0)