diff options
author | Mark Spruiell <mes@zeroc.com> | 2004-04-23 19:15:40 +0000 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2004-04-23 19:15:40 +0000 |
commit | ebcfa766fcc4ee60a727029b6fb2a54723e7518f (patch) | |
tree | b750496fd79051417ba0661f68ca917c1a99d868 /cpp/test/FreezeScript/dbmap/run.py | |
parent | fixes for new evictor database format (diff) | |
download | ice-ebcfa766fcc4ee60a727029b6fb2a54723e7518f.tar.bz2 ice-ebcfa766fcc4ee60a727029b6fb2a54723e7518f.tar.xz ice-ebcfa766fcc4ee60a727029b6fb2a54723e7518f.zip |
more error checking
Diffstat (limited to 'cpp/test/FreezeScript/dbmap/run.py')
-rwxr-xr-x | cpp/test/FreezeScript/dbmap/run.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cpp/test/FreezeScript/dbmap/run.py b/cpp/test/FreezeScript/dbmap/run.py index cfc160e777f..8a907ba609e 100755 --- a/cpp/test/FreezeScript/dbmap/run.py +++ b/cpp/test/FreezeScript/dbmap/run.py @@ -93,7 +93,8 @@ print "creating test database... ", sys.stdout.flush() makedb = os.path.join(directory, "makedb") + " " + directory -os.system(makedb) +if os.system(makedb) != 0: + sys.exit(1) print "ok" @@ -106,7 +107,8 @@ print "initializing test database... ", sys.stdout.flush() command = transformdb + " --old " + testold + " --new " + testold + " -f " + initxml + " " + dbdir + " default.db " + init_dbdir -os.system(command) +if os.system(command) != 0: + sys.exit(1) print "ok" @@ -123,7 +125,8 @@ print "validating database... ", sys.stdout.flush() command = transformdb + " --old " + testnew + " --new " + testnew + " -f " + checkxml + " " + check_dbdir + " default.db " + tmp_dbdir -os.system(command) +if os.system(command) != 0: + sys.exit(1) print "ok" |