diff options
author | brad kittenbrink <brad@lindenlab.com> | 2009-09-18 19:30:10 -0400 |
---|---|---|
committer | brad kittenbrink <brad@lindenlab.com> | 2009-09-18 19:30:10 -0400 |
commit | afb053ebd7c50482088ea2ddf585efe8446969cf (patch) | |
tree | a4587bda1bb80e99f77d8452f09de276ef596fe4 /indra/lib/python | |
parent | 05739cf8ac8cf0217e252842b92f154691858edf (diff) |
Minor tweaks of test_win32_manifest output.
Diffstat (limited to 'indra/lib/python')
-rw-r--r-- | indra/lib/python/indra/util/test_win32_manifest.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/indra/lib/python/indra/util/test_win32_manifest.py b/indra/lib/python/indra/util/test_win32_manifest.py index 7aa7a10928..460e5fd487 100644 --- a/indra/lib/python/indra/util/test_win32_manifest.py +++ b/indra/lib/python/indra/util/test_win32_manifest.py @@ -1,3 +1,4 @@ +#!/usr/bin/env python # @file test_win32_manifest.py # @brief Test an assembly binding version and uniqueness in a windows dll or exe. # @@ -37,21 +38,21 @@ def get_HKLM_registry_value(key_str, value_str): reg = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE) key = _winreg.OpenKey(reg, key_str) value = _winreg.QueryValueEx(key, value_str)[0] - print 'Found: %s' % value + #print 'Found: %s' % value return value def find_vc_dir(): supported_versions = (r'8.0', r'9.0') value_str = (r'ProductDir') - for version in supported_versions: + for version in supported_versions: key_str = (r'SOFTWARE\Microsoft\VisualStudio\%s\Setup\VC' % version) try: - return get_HKLM_registry_value(key_str, value_str) + return get_HKLM_registry_value(key_str, value_str) except WindowsError, err: x64_key_str = (r'SOFTWARE\Wow6432Node\Microsoft\VisualStudio\%s\Setup\VS' % - version) + version) try: return get_HKLM_registry_value(x64_key_str, value_str) except: @@ -65,6 +66,8 @@ def find_mt_path(): return mt_path def test_assembly_binding(src_filename, assembly_name, assembly_ver): + print "checking %s dependency %s..." % (src_filename, assembly_name) + (tmp_file_fd, tmp_file_name) = tempfile.mkstemp(suffix='.xml') tmp_file = os.fdopen(tmp_file_fd) tmp_file.close() @@ -101,12 +104,15 @@ def test_assembly_binding(src_filename, assembly_name, assembly_ver): raise Exception("Unexpected version") os.remove(tmp_file_name) + + print "SUCCESS: %s OK!" % src_filename + print if __name__ == '__main__': - print "Running test_win32_manifest.py..." print + print "Running test_win32_manifest.py..." usage = 'test_win32_manfest <srcFileName> <assemblyName> <assemblyVersion>' @@ -121,6 +127,5 @@ if __name__ == '__main__': raise test_assembly_binding(src_filename, assembly_name, assembly_ver) - |