02e4f40ec9
because nose is in deprecation[1] so we need to use nose2, or pytests instead. This commit suggests to use nose2 and fix some import errors on slow attribute according to the docs [2] 1: https://nose.readthedocs.io/en/latest/#note-to-users 2: https://docs.nose2.io/en/latest/plugins/attrib.html Change-Id: Idc0c8c146a9ac7fa7ffd90793211422571852d82
26 lines
504 B
Bash
Executable File
26 lines
504 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
|
|
nose2 -v ${@:2}
|
|
else
|
|
nose2 -v -A '!slow' ${@:2}
|
|
fi
|