diff --git a/test/photosort/photosort-test.sh b/test/photosort/photosort-test.sh index 9e6a5ad..3c0c3e3 100755 --- a/test/photosort/photosort-test.sh +++ b/test/photosort/photosort-test.sh @@ -45,6 +45,7 @@ testInvalidResizeValue() { assertTrue 'Invalid value should fail' "[ $status -gt 0 ]" } +return 2>/dev/null || true [ -f "$0" ] || { >&2 echo "Do not source file"; exit 1; } DIR=$( dirname "$0" ) DIR="${DIR##$(pwd)/}" diff --git a/test/test.sh b/test/test.sh index b5c3341..c2becc5 100755 --- a/test/test.sh +++ b/test/test.sh @@ -10,7 +10,7 @@ DIR=$(cd -- "$DIR"; pwd) bin=$(cd -- "$DIR"; cd ../bin/; pwd) export PATH="$PATH:$bin" -bash "$DIR/photosort/photosort-test.sh" +source "$DIR/photosort/photosort-test.sh" source "$DIR/test_add_aliases.sh" source "$DIR/test_link_dotfiles.sh" source "$DIR/test_gitlog.sh"