aboutsummaryrefslogtreecommitdiff
path: root/meson_test.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-05-09 16:17:20 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2015-05-09 16:17:20 +0300
commit572587f5cef0741cf68d5842d503ddb764e3d47b (patch)
tree61af19dce06ff84cf605b175885271706379219c /meson_test.py
parent717abc99fb57f1005717304e36583acd62b01fb4 (diff)
downloadmeson-572587f5cef0741cf68d5842d503ddb764e3d47b.zip
meson-572587f5cef0741cf68d5842d503ddb764e3d47b.tar.gz
meson-572587f5cef0741cf68d5842d503ddb764e3d47b.tar.bz2
Fix cross compilation tests.
Diffstat (limited to 'meson_test.py')
-rwxr-xr-xmeson_test.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/meson_test.py b/meson_test.py
index d4a5b62..2807dde 100755
--- a/meson_test.py
+++ b/meson_test.py
@@ -41,7 +41,10 @@ class TestRun():
def write_log(logfile, test_name, result_str, result):
logfile.write(result_str + '\n\n')
logfile.write('--- command ---\n')
- logfile.write(' '.join(result.cmd))
+ if result.cmd is None:
+ logfile.write('NONE')
+ else:
+ logfile.write(' '.join(result.cmd))
logfile.write('\n--- "%s" stdout ---\n' % test_name)
logfile.write(result.stdo)
logfile.write('\n--- "%s" stderr ---\n' % test_name)