From 9a46a992a0578f898b58ba1ac5e9780076c28135 Mon Sep 17 00:00:00 2001 From: James Foucar Date: Mon, 1 Aug 2016 15:36:47 -0600 Subject: [PATCH] On batch systems, be sure to report that the problem is with wait_for_tests, not create_test --- utils/python/tests/scripts_regression_tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/utils/python/tests/scripts_regression_tests.py b/utils/python/tests/scripts_regression_tests.py index 2eb9a03e437..5a832502c58 100755 --- a/utils/python/tests/scripts_regression_tests.py +++ b/utils/python/tests/scripts_regression_tests.py @@ -731,7 +731,8 @@ def simple_test(self, expect_works, extra_args): if (self._hasbatch): self.assertEqual(stat, 0, msg="COMMAND '%s' SHOULD HAVE WORKED\ncreate_test output:\n%s\n\nerrput:\n%s\n\ncode: %d" % (cmd, output, errput, stat)) test_id = extra_args.split()[extra_args.split().index("-t") + 1] - stat, output, errput = run_cmd("%s/wait_for_tests *%s*/TestStatus" % (TOOLS_DIR, test_id), from_dir=self._testroot) + cmd = "%s/wait_for_tests *%s*/TestStatus" % (TOOLS_DIR, test_id) + stat, output, errput = run_cmd(cmd, from_dir=self._testroot) if (expect_works): self.assertEqual(stat, 0, msg="COMMAND '%s' SHOULD HAVE WORKED\nOutput:\n%s\n\nerrput:\n%s\n\ncode: %d" % (cmd, output, errput, stat))