diff mbox series

open_posix_testsuite/generate-makefiles.sh: Fix determinism issue

Message ID 6c83b5fc8c891046131dbe049e37357e055f706e.camel@linuxfoundation.org
State Accepted
Headers show
Series open_posix_testsuite/generate-makefiles.sh: Fix determinism issue | expand

Commit Message

Richard Purdie March 2, 2021, 1:44 p.m. UTC
Currently the list of tests is generated by the order of the files found
within the directories. This results in differences in the run.sh and 
Makefiles. Within Yocto Project this results in differing target
test packages. The fix is simple, just sort the output from locate-test.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>

Comments

Cyril Hrubis March 2, 2021, 2:29 p.m. UTC | #1
Hi!
Pushed, thanks.
diff mbox series

Patch

Index: git/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
===================================================================
--- git.orig/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
+++ git/testcases/open_posix_testsuite/scripts/generate-makefiles.sh
@@ -24,7 +24,7 @@  generate_locate_test_makefile() {
 
 	echo "Generating $maketype Makefiles"
 
-	locate-test --$maketype | sed -e 's,^./,,g' > make-gen.$maketype
+	locate-test --$maketype | sed -e 's,^./,,g' | sort > make-gen.$maketype
 
 	generate_makefiles make-gen.$maketype $*