Changeset: 0393b2167ea6 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=0393b2167ea6
Modified Files:
testing/Mtest.py.in
Branch: Apr2012
Log Message:
Call SymlinkOrCopy with just the file as final arg.
The function is called inside TSTTRGDIR, so we don't need to specify
that directory as destination.
diffs (17 lines):
diff --git a/testing/Mtest.py.in b/testing/Mtest.py.in
--- a/testing/Mtest.py.in
+++ b/testing/Mtest.py.in
@@ -1766,11 +1766,11 @@ def RunTest(env, TST, BusyPorts, COND, o
for f in os.listdir(RELSRCDIR):
if test.match(f):
try:
- SymlinkOrCopy(os.path.join(RELSRCDIR, f),
os.path.join(TSTTRGDIR, f))
+ SymlinkOrCopy(os.path.join(RELSRCDIR, f), f)
links.append(os.path.join(TSTTRGDIR, f))
except IOError, (IOerrNo, IOerrStr):
ErrMsg("SymlinkOrCopy('%s','%s') in '%s' failed with #%d:
'%s'."
- % (os.path.join(RELSRCDIR, f),
os.path.join(TSTTRGDIR, f), os.getcwd(), IOerrNo, IOerrStr))
+ % (os.path.join(RELSRCDIR, f), f, os.getcwd(),
IOerrNo, IOerrStr))
# Check for available sockets and block them until we're ready to run
the actual test
MAPIsockets, reason = CheckSocket2(env, "MAPI") #, SrvrErr)
_______________________________________________
Checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list