Skip to content

Commit 6f011c9

Browse files
marc-hbnashif
authored andcommitted
sanitycheck: don't generate the top-level Makefile in random order
Also add a "generated by sanitycheck" header to indicate origin and a warning about the dependency required to actually run the test. Signed-off-by: Marc Herbert <[email protected]>
1 parent d83f926 commit 6f011c9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

scripts/sanitycheck

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1325,9 +1325,11 @@ class MakeGenerator:
13251325
# Create our dynamic Makefile and execute it.
13261326
# Watch stderr output which is where we will keep
13271327
# track of build state
1328-
for name, goal in self.goals.items():
1328+
tf.write('\n# Generated by %s which is expected\n' % __file__)
1329+
tf.write('# to spawn qemu or testbinary, renode, etc. \n\n')
1330+
for name, goal in sorted(self.goals.items()):
13291331
tf.write(goal.text)
1330-
tf.write("all: %s\n" % (" ".join(self.goals.keys())))
1332+
tf.write("all: %s\n" % (" ".join(sorted(self.goals.keys()))))
13311333
tf.flush()
13321334

13331335
cmd = ["make", "-k", "-j", str(JOBS), "-f", tf.name, "all"]

0 commit comments

Comments
 (0)