@@ -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 ))
0 commit comments