diff --git a/.travis.yml b/.travis.yml index fe37c22f52b..f06783513e2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -36,11 +36,11 @@ script: - make VERBOSE=1 - make package - cd .. - - sudo test/run_regression_tests.sh + - sudo test/run_regression_tests.sh $TRAVIS_BRANCH notifications: webhooks: urls: # - https://webhooks.gitter.im/e/fdbc2356fb0ea2f15033 on_success: change on_failure: always - on_start: never \ No newline at end of file + on_start: never diff --git a/test/falco_test.py b/test/falco_test.py index adb35767598..b9358e17264 100644 --- a/test/falco_test.py +++ b/test/falco_test.py @@ -42,7 +42,7 @@ def test(self): self.falco_proc = process.SubProcess(cmd) - res = self.falco_proc.run(timeout=60, sig=9) + res = self.falco_proc.run(timeout=180, sig=9) if res.exit_status != 0: self.error("Falco command \"{}\" exited with non-zero return value {}".format( diff --git a/test/run_regression_tests.sh b/test/run_regression_tests.sh index b46646a1653..8d63073b48e 100755 --- a/test/run_regression_tests.sh +++ b/test/run_regression_tests.sh @@ -3,11 +3,13 @@ SCRIPT=$(readlink -f $0) SCRIPTDIR=$(dirname $SCRIPT) MULT_FILE=$SCRIPTDIR/falco_tests.yaml +BRANCH=$1 function download_trace_files() { + echo "branch=$BRANCH" for TRACE in traces-positive traces-negative traces-info ; do rm -rf $SCRIPTDIR/$TRACE - curl -so $SCRIPTDIR/$TRACE.zip https://s3.amazonaws.com/download.draios.com/falco-tests/$TRACE.zip && + curl -fso $SCRIPTDIR/$TRACE.zip https://s3.amazonaws.com/download.draios.com/falco-tests/$TRACE-$BRANCH.zip || curl -fso $SCRIPTDIR/$TRACE.zip https://s3.amazonaws.com/download.draios.com/falco-tests/$TRACE.zip && unzip -d $SCRIPTDIR $SCRIPTDIR/$TRACE.zip && rm -rf $SCRIPTDIR/$TRACE.zip done