mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-11 22:10:09 +01:00
tests: passing in environments without sudo
This commit is contained in:
parent
d339923354
commit
d81ee69611
3 changed files with 14 additions and 4 deletions
6
tests/main.sh
Normal file → Executable file
6
tests/main.sh
Normal file → Executable file
|
|
@ -28,8 +28,10 @@ run_test() {
|
|||
}
|
||||
|
||||
run_case() {
|
||||
source $1
|
||||
run_test "$case" "$command" "$error" "$expect"
|
||||
(
|
||||
source $1
|
||||
run_test "$case" "$command" "$error" "$expect"
|
||||
)
|
||||
|
||||
if [[ $? == 0 ]]; then
|
||||
PASSED=$((PASSED + 1))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue