tests.sh
tests.sh copied to clipboard
tests.sh doesn't process -s option with the one -v option
user@wks-dps:~/Documents/git/node-collectors/tests$ ./lib/tests.sh -d testcases -s util/setup.sh -Aa >/dev/null 2>&1; echo $?
0
user@wks-dps:~/Documents/git/node-collectors/tests$ ./lib/tests.sh -v -d testcases -s util/setup.sh -Aa >/dev/null 2>&1; echo $?
1
user@wks-dps:~/Documents/git/node-collectors/tests$ ./lib/tests.sh -vv -d testcases -s util/setup.sh -Aa >/dev/null 2>&1; echo $?
0
Run with the one -v option:
user@wks-dps:~/Documents/git/node-collectors/tests$ ./lib/tests.sh -v -d testcases -s util/setup.sh -Aa
running test suite at: /home/user/Documents/git/node-collectors/tests/testcases
### TESTCASE testcases/node_type/php-if-etc-php-node-exists.test.sh
# {BEGIN} TEST SESSION AT /tmp/tests.BfDi
# evaluating command:
touch /tmp/tests.BfDi/root/etc/php-node
# assertion (command exited with code): positive expectation
# evaluating command:
:node_type
# @@ ROOT=/tmp/tests.BfDi/root
# evaluating command:
node_type
# assertion (command exited with code): positive expectation
# assertion (regexp matches): positive expectation
# assertion (regexp matches): failed
# assertion (regexp matches): >>> node_type = 'php'
# assertion (regexp matches): <<< contents of stdout:
### {END} TEST SESSION
### TESTCASE FAILED testcases/node_type/php-if-etc-php-node-exists.test.sh