Skip to content

Commit 795d903

Browse files
author
Damien Barker
committed
QPR-12959 fix test copy
1 parent 3cb3f29 commit 795d903

1 file changed

Lines changed: 8 additions & 4 deletions

File tree

Tools/PythonTools/update_expected_output.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22
import shutil
33

44

5-
def copy_existing_files(test_path):
6-
output_dir = Path(test_path) / "Output"
7-
expected_dir = Path(test_path) / "ExpectedOutput"
5+
def copy_existing_output(output_dir, expected_dir):
86

97
if not output_dir.exists() or not expected_dir.exists():
108
print("One of the directories does not exist.")
@@ -17,4 +15,10 @@ def copy_existing_files(test_path):
1715
shutil.copy2(file, target)
1816
print(f"Copied {file.name} to ExpectedOutput")
1917
else:
20-
print(f"Skipped {file.name} (not in ExpectedOutput)")
18+
print(f"Skipped {file.name} (not in ExpectedOutput)")
19+
20+
21+
def copy_existing_files(test_path):
22+
output_dir = Path(test_path) / "Output"
23+
expected_dir = Path(test_path) / "ExpectedOutput"
24+
copy_existing_output(output_dir, expected_dir)

0 commit comments

Comments
 (0)