We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3cb3f29 commit 795d903Copy full SHA for 795d903
1 file changed
Tools/PythonTools/update_expected_output.py
@@ -2,9 +2,7 @@
2
import shutil
3
4
5
-def copy_existing_files(test_path):
6
- output_dir = Path(test_path) / "Output"
7
- expected_dir = Path(test_path) / "ExpectedOutput"
+def copy_existing_output(output_dir, expected_dir):
8
9
if not output_dir.exists() or not expected_dir.exists():
10
print("One of the directories does not exist.")
@@ -17,4 +15,10 @@ def copy_existing_files(test_path):
17
15
shutil.copy2(file, target)
18
16
print(f"Copied {file.name} to ExpectedOutput")
19
else:
20
- print(f"Skipped {file.name} (not in ExpectedOutput)")
+ print(f"Skipped {file.name} (not in ExpectedOutput)")
+
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