on Exception during test, also print the actual config

When a test run encounters an Exception, the test config file name is printed,
but that may already be gone when done, so also print the complete actual test
config file contents, making it easy to reproduce the failure manually.

Change-Id: I9b00f170fb0cdceb35b9231eb1f2c545ba079d1d
This commit is contained in:
Neels Hofmeyr 2017-02-27 01:04:43 +01:00
parent 9b0a51fb87
commit cebe8f5b00
1 changed files with 1 additions and 0 deletions

View File

@ -64,6 +64,7 @@ def test_config_atest(app_desc, config, run_test, verbose=True):
print >> sys.stderr, "Failed to verify %s" % ' '.join(cmd)
print >> sys.stderr, "Current directory: %s" % os.getcwd()
print >> sys.stderr, "Error was %s" % se
print >> sys.stderr, "Config was\n%s" % open(config).read()
raise se
finally: