Skip to content
Snippets Groups Projects
Commit eb40f18a authored by Victor Engmark's avatar Victor Engmark Committed by Pierre Lalet
Browse files

Minor shell cleanup; Travis CI build status icon (#194)

* Flip conditional for simplicity
* Indent lines
* Include Travis CI build status image & link
parent 010ad71b
No related branches found
No related tags found
No related merge requests found
# Scapy # # Scapy #
[![Build Status](https://travis-ci.org/secdev/scapy.svg?branch=master)](https://travis-ci.org/secdev/scapy)
Scapy is a powerful Python-based interactive packet manipulation Scapy is a powerful Python-based interactive packet manipulation
program and library. program and library.
......
...@@ -5,9 +5,9 @@ if python --version 2>&1 | grep -q '^Python 2'; then ...@@ -5,9 +5,9 @@ if python --version 2>&1 | grep -q '^Python 2'; then
else else
PYTHON=python2 PYTHON=python2
fi fi
if [ ! -n "$*" ] if [ -z "$*" ]
then 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 else
PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@" PYTHONPATH=$DIR exec $PYTHON ${DIR}/scapy/tools/UTscapy.py "$@"
fi fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment