From 0f479d905a8d34f95e85cf887343cf054fb4058b Mon Sep 17 00:00:00 2001 From: lethosor Date: Fri, 17 Sep 2021 16:28:52 -0400 Subject: [PATCH] log stdout if DF fails --- ci/run-tests.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ci/run-tests.py b/ci/run-tests.py index 132631903..463a3a56f 100755 --- a/ci/run-tests.py +++ b/ci/run-tests.py @@ -112,11 +112,12 @@ try: stdin=subprocess.PIPE if args.headless else sys.stdin, stdout=subprocess.PIPE, stderr=subprocess.PIPE) - _, err = process.communicate() + out, err = process.communicate() if err: print('WARN: DF produced stderr: ' + repr(err[:5000])) if process.returncode != 0: print('ERROR: DF exited with ' + repr(process.returncode)) + print('DF stdout: %r' + repr(out[:5000])) finally: print('\nRestoring original init.txt') shutil.copyfile(init_txt_path + '.orig', init_txt_path)