Merge branch '19092-upload-crunchstat_summary-to-pypi'
[arvados-dev.git] / jenkins / run-diagnostics-suite.sh
index 015a0539c832fdcec36c257cb5ae51aee48c32c2..c7aaa9fdd8f2d7b5314c1759708440457e56a12d 100755 (executable)
@@ -1,5 +1,9 @@
 #!/bin/bash
 
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
 EXITCODE=0
 
 INSTANCE=$1
@@ -57,6 +61,14 @@ if [[ "$REVISION" != '' ]]; then
   git checkout $REVISION
 fi
 
+ECODE=$?
+
+if [[ "$ECODE" != "0" ]]; then
+  title "!!!!!! DIAGNOSTICS FAILED (`timer`) !!!!!!"
+  EXITCODE=$(($EXITCODE + $ECODE))
+  exit $EXITCODE
+fi
+
 cp -f /home/jenkins/diagnostics/arvados-workbench/$INSTANCE-application.yml $WORKSPACE/apps/workbench/config/application.yml
 
 cd $WORKSPACE/apps/workbench
@@ -67,12 +79,17 @@ if [[ ! -d tmp ]]; then
   mkdir tmp
 fi
 
-RAILS_ENV=diagnostics bundle exec rake TEST=test/diagnostics/pipeline_test.rb
+if [ $INSTANCE == '9tee4' ] 
+then
+    RAILS_ENV=diagnostics bundle exec rake TEST=test/diagnostics/container_request_test.rb
+else
+    RAILS_ENV=diagnostics bundle exec rake TEST=test/diagnostics/pipeline_test.rb
+fi
 
 ECODE=$?
 
 if [[ "$REVISION" != '' ]]; then
-  git checkout master
+  git checkout main
 fi
 
 if [[ "$ECODE" != "0" ]]; then