From 6f011c95c477b35e47324ee4063d301f44c4acd8 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Wed, 20 Mar 2019 13:58:55 -0700 Subject: [PATCH] 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 --- scripts/sanitycheck | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/sanitycheck b/scripts/sanitycheck index 281db3a4da591f..37929f8c96feb8 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -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"]