mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-30 15:14:14 +01:00
29 lines
346 B
Bash
Executable File
29 lines
346 B
Bash
Executable File
#!/bin/sh
|
|
|
|
OPTS='--all-modules '
|
|
|
|
die() {
|
|
echo Error: "$@"
|
|
exit 1
|
|
}
|
|
|
|
while [ "$#" -gt 0 ]; do
|
|
case $1 in
|
|
-c|--coverage)
|
|
OPTS="$OPTS --with-coverage"
|
|
;;
|
|
-v|--verbose)
|
|
OPTS="$OPTS --verbose"
|
|
;;
|
|
-*)
|
|
die "Unknown option: '$1'"
|
|
;;
|
|
*)
|
|
die "Unknown argument: '$1'"
|
|
;;
|
|
esac
|
|
shift
|
|
done
|
|
|
|
PYTHONPATH=lib nosetests $OPTS
|