@@ -17,7 +17,7 @@ def setup_test(single_case_text):
17
17
change_dir (single_case_text .name , single_case_text )
18
18
return True
19
19
20
- def get_windows_version (arg1 , arg2 ):
20
+ def get_windows_version (arg1 , arg2 , single_case_text ):
21
21
call_subprocess ("powershell \" (Get-Item -path " + arg1 + ").VersionInfo." + arg2 + "\" " , single_case_text )
22
22
return single_case_text .print_text
23
23
@@ -32,11 +32,11 @@ def migrate_test(single_case_text):
32
32
return False
33
33
print ("dpct's bundled clang version is: {}" .format (ct_clang_version ))
34
34
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 ()
40
40
41
41
print ("====={}'s VersionInfo properties=====" .format (ct_path ))
42
42
print ("FileVersion: {}" .format (file_version ))
0 commit comments