diff --git a/test/run_tests b/test/run_tests index 5f9ea2c14c089a7be8e553956483e3fbefc0f8c2..033916ea8cd49b39ca4849468924b628e19c8af4 100755 --- a/test/run_tests +++ b/test/run_tests @@ -1,11 +1,11 @@ -#! /bin/bash +#! /bin/sh DIR=$(dirname $0)/.. if python --version 2>&1 | grep -q '^Python 2'; then PYTHON=python else PYTHON=python2 fi -if [ "$*" == "" ] +if [ ! -n "$*" ] 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 else