From f5a276d3cd48c936b3fad04289735572bda528d0 Mon Sep 17 00:00:00 2001 From: Doug Hellmann Date: Fri, 1 May 2015 19:40:16 +0000 Subject: [PATCH] Remove run_cross_tests.sh This script is part of the oslotest package now. Change-Id: I4be1461329f0b6661217759245c2346b83e80135 --- tools/run_cross_tests.sh | 91 ---------------------------------------- 1 file changed, 91 deletions(-) delete mode 100755 tools/run_cross_tests.sh diff --git a/tools/run_cross_tests.sh b/tools/run_cross_tests.sh deleted file mode 100755 index 5e7bc118..00000000 --- a/tools/run_cross_tests.sh +++ /dev/null @@ -1,91 +0,0 @@ -#!/bin/bash -# -# Run cross-project tests -# -# Usage: -# -# run_cross_tests.sh project_dir venv - -# Fail the build if any command fails -set -e - -project_dir="$1" -venv="$2" - -if [ -z "$project_dir" -o -z "$venv" ] -then - cat - < ./subunit_log.txt - fi - .tox/$venv/bin/python /usr/local/jenkins/slave_scripts/subunit2html.py ./subunit_log.txt testr_results.html - gzip -9 ./subunit_log.txt - gzip -9 ./testr_results.html - - export PYTHON=.tox/$venv/bin/python - set -e - rancount=$(.tox/$venv/bin/testr last | sed -ne 's/Ran \([0-9]\+\).*tests in.*/\1/p') - if [ "$rancount" -eq "0" ] ; then - echo - echo "Zero tests were run. At least one test should have been run." - echo "Failing this test as a result" - echo - exit 1 - fi -fi - -# If we make it this far, report status based on the tests that were -# run. -exit $result