From eb40f18a7e9cf848c4ea372f63eb30942a624303 Mon Sep 17 00:00:00 2001 From: Victor Engmark <victor.engmark@gmail.com> Date: Sat, 11 Jun 2016 10:16:51 +0100 Subject: [PATCH] Minor shell cleanup; Travis CI build status icon (#194) * Flip conditional for simplicity * Indent lines * Include Travis CI build status image & link --- README.md | 2 ++ test/run_tests | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c3203b03..1ab115e0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # Scapy # +[](https://travis-ci.org/secdev/scapy) + Scapy is a powerful Python-based interactive packet manipulation program and library. diff --git a/test/run_tests b/test/run_tests index 033916ea..52ca07df 100755 --- a/test/run_tests +++ b/test/run_tests @@ -5,9 +5,9 @@ if python --version 2>&1 | grep -q '^Python 2'; then else PYTHON=python2 fi -if [ ! -n "$*" ] +if [ -z "$*" ] then -PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -l -o /tmp/scapy_regression_test_$(date +%Y%m%d-%H%M%S).html + PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py -t regression.uts -f html -l -o /tmp/scapy_regression_test_$(date +%Y%m%d-%H%M%S).html else -PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@" + PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@" fi -- GitLab