Changeset: 7891c6c76bcf for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=7891c6c76bcf
Modified Files:
testing/Mtest.py.in
Branch: Feb2013
Log Message:
Mtest: extract distribution name ("Solaris", "OpenIndiana", ...) also for SunOS
diffs (12 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -3276,6 +3276,8 @@ if SYST == "Linux":
if not LINUX_DIST:
LINUX_DIST = SYST+':'+re.match('^([0-9\.]*)([^0-9\.].*)$',
RELEASE).group(1)
DIST,VERSION = LINUX_DIST.split(':', 1)
+elif SYST == "SunOS" and os.path.isfile('/etc/release'):
+ (DIST,VERSION,rest) = open('/etc/release').readline().strip().split(' ',2)
else:
DIST = SYST
VERSION = RELEASE
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list