storlets/.functests
Kota Tsuyuzaki 28677c0113 Port gathering logs routine from .functests to post ansible yaml
Change-Id: I5cc87cac7eb2a36b8c86a4807592d3ee64d94780
2019-11-08 14:57:57 +09:00

26 lines
524 B
Bash
Executable File

#!/bin/bash
if [ "$#" -lt 1 ]; then
echo "Usage: .functests <flavour>"
echo "flavour = jenkins | dev"
exit 1
fi
FLAVOR="$1"
if [ "$FLAVOR" != "jenkins" ] && [ "$FLAVOR" != "dev" ]; then
echo "flavour must be either \"jenkins\" or \"dev\""
echo "dev flavor skips long running tests"
exit 1
fi
shift
ant build_storlets
SRC_DIR=$(cd $(dirname $0); pwd)
cd ${SRC_DIR}/tests/functional
if [ "$FLAVOR" == "jenkins" ]; then
nosetests --exe -v ${@:2}
else
nosetests --exe -v -a '!slow' ${@:2}
fi