/test_ctests / test_notify1: Print cmdline on failure
authorBernd Schubert <bschubert@ddn.com>
Wed, 20 Mar 2024 11:02:30 +0000 (12:02 +0100)
committerBernd Schubert <bschubert@ddn.com>
Wed, 20 Mar 2024 11:37:17 +0000 (12:37 +0100)
Tests sometimes fail with

pytest.fail('file system process terminated prematurely')

And it is not clear what actually happens.

test/test_ctests.py

index c0afe3df48460f99f8fa395d60c260dc4bd6324f..55db156f8a7fad25d36c97fbeca23e231da8a9dc 100644 (file)
@@ -75,6 +75,7 @@ def test_notify1(tmpdir, name, notify, output_checker):
         else:
             assert read1 == read2
     except:
+        print("Failure in notify test: '" + str(cmdline) + "'")
         cleanup(mount_process, mnt_dir)
         raise
     else: