diff options
author | Matthew Newhook <matthew@zeroc.com> | 2006-06-28 15:50:28 +0000 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2006-06-28 15:50:28 +0000 |
commit | 2c17b9664a0894e9061a7e4b942e560d9325580d (patch) | |
tree | aa5ea77377ada4b070255d56f92a2c2d5323786a /cpp/test/FreezeScript/evictor/run.py | |
parent | fix for removal of removeObjectFactory in bug 472 (diff) | |
download | ice-2c17b9664a0894e9061a7e4b942e560d9325580d.tar.bz2 ice-2c17b9664a0894e9061a7e4b942e560d9325580d.tar.xz ice-2c17b9664a0894e9061a7e4b942e560d9325580d.zip |
bug 1149
Diffstat (limited to 'cpp/test/FreezeScript/evictor/run.py')
-rwxr-xr-x | cpp/test/FreezeScript/evictor/run.py | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/cpp/test/FreezeScript/evictor/run.py b/cpp/test/FreezeScript/evictor/run.py index d686f2a550d..f70bbd74b9e 100755 --- a/cpp/test/FreezeScript/evictor/run.py +++ b/cpp/test/FreezeScript/evictor/run.py @@ -40,6 +40,8 @@ print "creating test database...", sys.stdout.flush() makedb = os.path.join(directory, "makedb") + " " + directory +if TestUtil.debug: + print "(" + makedb + ")", if os.system(makedb) != 0: sys.exit(1) @@ -54,15 +56,27 @@ print "executing evictor transformations...", sys.stdout.flush() command = transformdb + " -e -p --old " + testold + " --new " + testnew + " -f " + transformxml + " " + dbdir + " evictor.db " + check_dbdir -stdin, stdout, stderr = os.popen3(command) -stderr.readlines() +if TestUtil.debug: + print "(" + command + ")", +#stdin, stdout, stderr = os.popen3(command) +#stderr.readlines() +pipe = os.popen(command + " 2>&1") print "ok" +#TestUtil.printOutputFromPipe(pipe) + +clientStatus = TestUtil.closePipe(pipe) +if clientStatus: + print "failed!" + sys.exit(1) + print "validating database...", sys.stdout.flush() command = transformdb + " -e --old " + testnew + " --new " + testnew + " -f " + checkxml + " " + check_dbdir + " evictor.db " + tmp_dbdir +if TestUtil.debug: + print "(" + command + ")", if os.system(command) != 0: sys.exit(1) |