From bce0b5b5830a58e19850934c9353e3c2d7eafea5 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 19 Dec 2014 03:29:11 +0100 Subject: lvc: refactor, reduce redundancy in job-cfg --- bin/lvc/run_test_suite | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bin/lvc/run_test_suite') diff --git a/bin/lvc/run_test_suite b/bin/lvc/run_test_suite index e7670b0b..957db812 100755 --- a/bin/lvc/run_test_suite +++ b/bin/lvc/run_test_suite @@ -189,11 +189,16 @@ export JAVA_HOME="/usr/lib/jvm/java-7-openjdk-amd64" export SIKULI_HOME="/usr/share/java" export SIKULI_IMAGE_PATH="/srv/jenkins/features/images/" export RUBYLIB="/srv/jenkins" +export FEATURE_PATCH="/srv/jenkins/features" export VM_XML_PATH="/srv/jenkins/features/domains" export DISPLAY=${TARGET_DISPLAY} check_dependency cucumber if [ -z "${*}" ]; then - cucumber --format ExtraHooks::Pretty $RUBYLIB/features + cucumber --format ExtraHooks::Pretty $FEATURE_PATH else - cucumber --format ExtraHooks::Pretty $RUBYLIB/features/step_definitions $RUBYLIB/features/support ${*} + FEATURES="" + for f in ${*} ; do + FEATURES="$FEATURES $FEATURE_PATH/$f" + done + cucumber --format ExtraHooks::Pretty $FEATURE_PATH/step_definitions $FEATURE_PATH/support $FEATURES fi -- cgit v1.2.3-70-g09d2