[Swift-commit] r2696 - provenancedb
noreply at svn.ci.uchicago.edu
noreply at svn.ci.uchicago.edu
Mon Mar 16 13:20:20 CDT 2009
Author: benc
Date: 2009-03-16 13:20:19 -0500 (Mon, 16 Mar 2009)
New Revision: 2696
Modified:
provenancedb/swift-prov-import-all-logs
Log:
fail harder when swift-plot-log does not run
Modified: provenancedb/swift-prov-import-all-logs
===================================================================
--- provenancedb/swift-prov-import-all-logs 2009-03-16 18:19:28 UTC (rev 2695)
+++ provenancedb/swift-prov-import-all-logs 2009-03-16 18:20:19 UTC (rev 2696)
@@ -13,6 +13,11 @@
swift-plot-log $LOGREPO everylog-vs-versions.data
+if [ "$?" != "0" ]; then
+ echo swift-plot-log failed when building everylog-vs-versions.data
+ exit 1
+fi
+
# TODO better tmp handling that always using the same name in a shared
# directory
cp everylog-vs-versions.data /tmp/
@@ -40,7 +45,16 @@
echo version $version in log file $filename
echo ============= will import =============
prepare-for-import $filename
+ if [ "$?" != "0" ]; then
+ echo prepare-for-import failed
+ exit 2
+ fi
import-run-to-sql $filename
+ if [ "$?" != "0" ]; then
+ echo import-run-to-sql failed
+ exit 3
+ fi
+
# import-run-to-xml $filename
echo "INSERT INTO known_workflows (workflow_log_filename, version, importstatus) VALUES ('$filename','$version','imported');" | $SQLCMD
else
More information about the Swift-commit
mailing list