diff options
author | Dan Nicholson <nicholson@endlessm.com> | 2017-10-13 19:52:04 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2017-12-01 19:00:18 +0000 |
commit | afebb5c336bebe4f41704ec995bb430d006f85e4 (patch) | |
tree | f16872e75296f68a0995f5dd1fdc0592e43d79b4 /Makefile-tests.am | |
parent | 870b614f37b17c9e2583e24ebae7467687015b20 (diff) | |
download | ostree-afebb5c336bebe4f41704ec995bb430d006f85e4.tar.gz |
tests: Run python tests with stdout unbuffered
Set the PYTHONUNBUFFERED environment variable during tests so that
python leaves stdout unbuffered. This is helpful when reading logs for
failures since the interleaved stdout and stderr will generally come out
in the right order. It's not perfect since tap-driver.sh does some
special redirection to the log file, but it's an improvement.
Closes: #1352
Approved by: dbnicholson
Diffstat (limited to 'Makefile-tests.am')
-rw-r--r-- | Makefile-tests.am | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile-tests.am b/Makefile-tests.am index 164717b1..6d0e0865 100644 --- a/Makefile-tests.am +++ b/Makefile-tests.am @@ -35,6 +35,7 @@ AM_TESTS_ENVIRONMENT += OT_TESTS_DEBUG=1 \ LD_LIBRARY_PATH=$$(cd $(top_builddir)/.libs && pwd)$${LD_LIBRARY_PATH:+:$${LD_LIBRARY_PATH}} \ PATH=$$(cd $(top_builddir)/tests && pwd):$${PATH} \ OSTREE_FEATURES="$(OSTREE_FEATURES)" \ + PYTHONUNBUFFERED=1 \ $(NULL) if BUILDOPT_ASAN AM_TESTS_ENVIRONMENT += OT_SKIP_READDIR_RAND=1 G_SLICE=always-malloc |