Browse Source

query-node: prevent cleanup() in run-tests.sh from failing if container not found

Mokhtar Naamani 4 years ago
parent
commit
96e4a5ead1
1 changed files with 2 additions and 4 deletions
  1. 2 4
      query-node/run-tests.sh

+ 2 - 4
query-node/run-tests.sh

@@ -7,10 +7,8 @@ cd $SCRIPT_PATH
 function cleanup() {
     # Show tail end of logs for the processor and indexer containers to
     # see any possible errors
-    echo "## Processor Logs ##"
-    docker logs query-node_processor_1 --tail 50
-    echo "## Indexer Logs ##"
-    docker logs query-node_indexer_1 --tail 50
+    (echo "## Processor Logs ##" && docker logs query-node_processor_1 --tail 50) || :
+    (echo "## Indexer Logs ##" && docker logs query-node_indexer_1 --tail 50) || :
     docker-compose down -v
 }