Skip to contentSkip to conversation

open_posix_testsuite/generate-makefiles.sh: Fix determinism issue

PATCH New Richard Purdie 2 participants 2 messages Mar 2, 2021

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 open_posix_testsuite/generate-makefiles.sh: Fix determinism issue

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.

testcases/open_posix_testsuite/scripts/generate-makefiles.sh +1 -1
Index: 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 $*