Skip to content

Commit

Permalink
sanitycheck: don't generate the top-level Makefile in random order
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
marc-hb authored and nashif committed Mar 27, 2019
1 parent d83f926 commit 6f011c9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -1325,9 +1325,11 @@ class MakeGenerator:
# Create our dynamic Makefile and execute it.
# Watch stderr output which is where we will keep
# track of build state
for name, goal in self.goals.items():
tf.write('\n# Generated by %s which is expected\n' % __file__)
tf.write('# to spawn qemu or testbinary, renode, etc. \n\n')
for name, goal in sorted(self.goals.items()):
tf.write(goal.text)
tf.write("all: %s\n" % (" ".join(self.goals.keys())))
tf.write("all: %s\n" % (" ".join(sorted(self.goals.keys()))))
tf.flush()

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

0 comments on commit 6f011c9

Please sign in to comment.