- Timestamp:
- May 8, 2017 2:58:08 PM (7 years ago)
- File:
-
- 1 edited
-
trunk/src/VBox/ValidationKit/common/utils.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/common/utils.py
r66472 r66818 243 243 rc = ctypes.windll.Ntdll.RtlGetVersion(ctypes.byref(oOsVersion)) 244 244 if rc == 0: 245 # Python platform.release() is not reliable for newer server releases 246 if oOsVersion.wProductType != 1: 247 if oOsVersion.dwMajorVersion == 10 and oOsVersion.dwMinorVersion == 0: 248 sVersion = '2016Server'; 249 elif oOsVersion.dwMajorVersion == 6 and oOsVersion.dwMinorVersion == 3: 250 sVersion = '2012ServerR2'; 251 elif oOsVersion.dwMajorVersion == 6 and oOsVersion.dwMinorVersion == 2: 252 sVersion = '2012Server'; 253 elif oOsVersion.dwMajorVersion == 6 and oOsVersion.dwMinorVersion == 1: 254 sVersion = '2008ServerR2'; 255 elif oOsVersion.dwMajorVersion == 6 and oOsVersion.dwMinorVersion == 0: 256 sVersion = '2008Server'; 257 elif oOsVersion.dwMajorVersion == 5 and oOsVersion.dwMinorVersion == 2: 258 sVersion = '2003Server'; 245 259 sVersion += ' build ' + str(oOsVersion.dwBuildNumber) 246 260 if oOsVersion.wServicePackMajor:
Note:
See TracChangeset
for help on using the changeset viewer.

