]> git.lttng.org Git - lttng-tools.git/commitdiff
Tests: serial runner: FileExistsError not from pathlib
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Dec 2024 13:45:23 +0000 (08:45 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 20 Dec 2024 13:45:23 +0000 (08:45 -0500)
The FileExistsError exception is not defined in the pathlib
module; it is a built-in exception.

Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Change-Id: I1c6fd640d03cc7bad7afd32bf9eaaa28a838455a

tests/regression/tests.serial

index 6de8422e8ffcf3003c027d91725e2b9b00f21c2f..5584437f592ff876d54161aad57ce567d3be50e9 100755 (executable)
@@ -99,7 +99,7 @@ def run_test(test_script):
         test_log_dir = pathlib.Path("{}.log.d".format(test_script))
         try:
             test_log_dir.mkdir(parents=True)
-        except pathlib.FileExistsError:
+        except FileExistsError:
             pass
         test_env["LTTNG_TEST_LOG_DIR"] = str(test_log_dir)
     process = subprocess.Popen(
This page took 0.029582 seconds and 4 git commands to generate.