From 5856f96594ddce3375792f622befd8db60727a70 Mon Sep 17 00:00:00 2001 From: chenhb Date: Wed, 2 Aug 2017 16:08:27 +0800 Subject: [PATCH] [ci]move unexpected resources table to console html It is unexpected result on rally gates if unexpected resources were found. Let us move unexpected resources table to console html, we can be easy to find the error. Change-Id: I52cf2e4fed7e18f7ed95be1943a39a21161e4333 --- tests/ci/rally_gate_functions.sh | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/ci/rally_gate_functions.sh b/tests/ci/rally_gate_functions.sh index 6a050e49..65e0e95f 100644 --- a/tests/ci/rally_gate_functions.sh +++ b/tests/ci/rally_gate_functions.sh @@ -148,9 +148,14 @@ function run () { set -e cp resources_at_start.txt rally-plot/ - $PYTHON $RALLY_DIR/tests/ci/osresources.py\ - --compare-with-list resources_at_start.txt\ - | gzip > rally-plot/resources_diff.txt.gz + if [ "$ZUUL_PROJECT" == "openstack/rally" ];then + $PYTHON $RALLY_DIR/tests/ci/osresources.py\ + --compare-with-list resources_at_start.txt + else + $PYTHON $RALLY_DIR/tests/ci/osresources.py\ + --compare-with-list resources_at_start.txt\ + | gzip > rally-plot/resources_diff.txt.gz + fi exit $retval }