Skip to content

Commit 1024631

Browse files
committed
fix bug
Signed-off-by: Ni, Wenhui <[email protected]>
1 parent f08c6e0 commit 1024631

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

behavior_tests/src/check-windows-version/do_test.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ def setup_test(single_case_text):
1717
change_dir(single_case_text.name, single_case_text)
1818
return True
1919

20-
def get_windows_version(arg1, arg2):
20+
def get_windows_version(arg1, arg2, single_case_text):
2121
call_subprocess("powershell \"(Get-Item -path " + arg1 + ").VersionInfo." + arg2 + "\"", single_case_text)
2222
return single_case_text.print_text
2323

@@ -32,11 +32,11 @@ def migrate_test(single_case_text):
3232
return False
3333
print("dpct's bundled clang version is: {}".format(ct_clang_version))
3434

35-
file_version = get_windows_version(ct_path, 'FileVersion').strip()
36-
product_version = get_windows_version(ct_path, 'ProductVersion').strip()
37-
product_name = get_windows_version(ct_path, 'ProductName').strip()
38-
file_description = get_windows_version(ct_path, 'FileDescription').strip()
39-
legal_copyright = get_windows_version(ct_path, 'LegalCopyright').strip()
35+
file_version = get_windows_version(ct_path, 'FileVersion', single_case_text).strip()
36+
product_version = get_windows_version(ct_path, 'ProductVersion', single_case_text).strip()
37+
product_name = get_windows_version(ct_path, 'ProductName', single_case_text).strip()
38+
file_description = get_windows_version(ct_path, 'FileDescription', single_case_text).strip()
39+
legal_copyright = get_windows_version(ct_path, 'LegalCopyright', single_case_text).strip()
4040

4141
print("====={}'s VersionInfo properties=====".format(ct_path))
4242
print("FileVersion: {}".format(file_version))

behavior_tests/src/execute_from_bundle_root/do_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
def setup_test(single_case_text):
1818
change_dir(single_case_text.name, single_case_text)
19-
prepare_execution_folder()
19+
prepare_execution_folder(single_case_text)
2020
return True
2121

2222

23-
def prepare_execution_folder():
23+
def prepare_execution_folder(single_case_text):
2424
copy_ct_bin = os.path.dirname(str(shutil.which(single_case_text.CT_TOOL)))
2525
distutils.dir_util.copy_tree(copy_ct_bin, "bin")
2626

behavior_tests/src/execute_from_cuda_path/do_test.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@
1616

1717
def setup_test(single_case_text):
1818
change_dir(single_case_text.name, single_case_text)
19-
prepare_execution_folder()
19+
prepare_execution_folder(single_case_text)
2020
return True
2121

2222

23-
def prepare_execution_folder():
23+
def prepare_execution_folder(single_case_text):
2424
distutils.dir_util.copy_tree(single_case_text.include_path, "include")
2525

2626
def migrate_test(single_case_text):

0 commit comments

Comments
 (0)