diff --git a/tests/umockdev-test.py b/tests/umockdev-test.py index 1b556e1..dc75995 100755 --- a/tests/umockdev-test.py +++ b/tests/umockdev-test.py @@ -87,6 +87,11 @@ try: if os.path.exists(os.path.join(ddir, "custom.ioctl")): custom() +except: + # Store created output files for inspection (in the build directory) + outdir = os.path.join('errors', os.path.basename(ddir)) + shutil.copytree(tmpdir, outdir) + finally: shutil.rmtree(tmpdir)