From 5a7f707ed26afdb199f09aeab347ab5a84c03143 Mon Sep 17 00:00:00 2001 From: Tyler Baker Date: Wed, 13 Nov 2013 14:48:56 -0800 Subject: Take ignore options from the command line Signed-off-by: Tyler Baker --- run.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/run.sh b/run.sh index 37940f8..00ef983 100755 --- a/run.sh +++ b/run.sh @@ -1,5 +1,5 @@ #!/bin/bash -# Usage ./run.sh +# Usage ./run.sh # $WORKSPACE - Jenkins Workspace Variable # $BUILD_URL - Jenkins Build URL @@ -45,13 +45,13 @@ function pep8_check () if [[ -s $WORKSPACE/pep8 ]] then - echo "* Test Failed: PEP8 (pep8 --ignore E501 .)" >> $WORKSPACE/results + echo "* Test Failed: PEP8 (pep8 --ignore $1 .)" >> $WORKSPACE/results sed 's/^/*/g' $WORKSPACE/pep8 >> $WORKSPACE/results echo "PEP8 CHECK FAILED:" - pep8 --ignore E501 --show-source --show-pep8 . + pep8 --ignore $1 --show-source --show-pep8 . echo "* Please see the console output from the build url below for verbose PEP8 output" >> $WORKSPACE/results else - echo "* Test Passed: PEP8 (pep8 --ignore E501 .)" >> $WORKSPACE/results + echo "* Test Passed: PEP8 (pep8 --ignore $1 .)" >> $WORKSPACE/results fi } @@ -78,5 +78,5 @@ function publish_results () notify_committer check_step checkout_and_rebase -check_step pep8_check +check_step pep8_check $1 publish_results -- cgit v1.2.3