From bf4e925c8f0d0564a83d374dbd2acbb550d56455 Mon Sep 17 00:00:00 2001 From: Bernhard Kaindl Date: Fri, 5 Jan 2024 19:24:05 +0100 Subject: [PATCH] Rename the srcdir variable to fix spelling checks --- tests/integration/conftest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/integration/conftest.py b/tests/integration/conftest.py index d5961d2e..9317a795 100644 --- a/tests/integration/conftest.py +++ b/tests/integration/conftest.py @@ -31,7 +31,7 @@ def run_test_functions_with_private_tmpfs_output_directory(): # To provide test files below /var, subdirectores can be bind-mounted/created here # (or the tmpfs mount above could be done on BUGTOOL_OUTPUT_DIR) # run_bugtool_entry() will chdir to the output directory, so change back afterwards: - srcdir = os.getcwd() + src_dir = os.getcwd() yield os.chdir(BUGTOOL_OUTPUT_DIR) # Assert that the test case did not leave any unchecked output fileas in the output directory: @@ -44,9 +44,9 @@ def run_test_functions_with_private_tmpfs_output_directory(): print(remaining_files) os.chdir(BUGTOOL_OUTPUT_DIR) run(["find", "-type", "f"]) - os.chdir(srcdir) + os.chdir(src_dir) print("Ensure that these files are checked, remove them when checked.") umount("/var") raise RuntimeError("Remaining (possibly unchecked) files found. Run 'pytest -rF' for logs") - os.chdir(srcdir) + os.chdir(src_dir) umount("/var")