"deploy/cloud/operator/go.mod" did not exist on "cb0ceb81b791475b5bf2d550b485db3af1310450"
run_unit_tests.sh 369 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash

FLAGS=""

while getopts ":v" option; do
    case $option in
        v)
            FLAGS=$(echo "-v $FLAGS" | xargs) # strip whitespace
            ;;
        *)
            echo "Invalid option: ${option}"
            ;;
    esac
done



python3 -m unittest $FLAGS "$@" || \
echo -e "\nTest(s) failed. Make sure you've installed all Python dependencies."