Changeset: 1609eae18f34 for MonetDB
URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=1609eae18f34
Modified Files:
sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.stable.err
Branch: Feb2013
Log Message:
binary_copy_into.Bug-3345: make test outout independent of local
paths/directories
diffs (23 lines):
diff --git a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
--- a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
+++ b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.SQL.py
@@ -22,5 +22,5 @@ clt.stdin.write('create table bug (n_nat
clt.stdin.write('copy binary into bug from \'%s/n_nationkey.sorted\',
\'%s/n_regionkey.sorted\';\n'% (dst,dst))
out, err = clt.communicate()
-sys.stdout.write(out)
-sys.stderr.write(err)
+sys.stdout.write(out.replace(os.environ['TSTTRGBASE'],'${TSTTRGBASE}'))
+sys.stderr.write(err.replace(os.environ['TSTTRGBASE'],'${TSTTRGBASE}'))
diff --git
a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.stable.err
b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.stable.err
--- a/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.stable.err
+++ b/sql/test/BugTracker-2013/Tests/binary_copy_into.Bug-3345.stable.err
@@ -30,7 +30,7 @@ stderr of test 'binary_copy_into.Bug-334
MAPI = (monetdb) /var/tmp/mtest-15437/.s.monetdb.35953
QUERY = start transaction;create table bug (n_nationkey INTEGER,n_regionkey
INTEGER);
- copy binary into bug from
'/home/niels/scratch/rc-clean/Linux-x86_64/mTests/sql/test/BugTracker-2013/n_nationkey.sorted',
'/home/niels/scratch/rc-clean/Linux-x86_64/mTests/sql/test/BugTracker-2013/n_regionkey.sorted';
+ copy binary into bug from
'${TSTTRGBASE}/mTests/sql/test/BugTracker-2013/n_nationkey.sorted',
'${TSTTRGBASE}/mTests/sql/test/BugTracker-2013/n_regionkey.sorted';
ERROR = !binary files for table 'bug' have inconsistent counts
# 11:33:26 >
_______________________________________________
checkin-list mailing list
[email protected]
http://mail.monetdb.org/mailman/listinfo/checkin-list