# HG changeset patch # User Chris Cannam # Date 1568985617 -3600 # Node ID 1dbc681aec210eb16623623be4bf4346aba56771 # Parent 4e4e4fa2d6e21bcafbf4b4459e17c8125ce6b077 Fix directory test diff -r 4e4e4fa2d6e2 -r 1dbc681aec21 test/test-session-export.sh --- a/test/test-session-export.sh Fri Sep 20 11:35:39 2019 +0100 +++ b/test/test-session-export.sh Fri Sep 20 14:20:17 2019 +0100 @@ -1,7 +1,7 @@ #!/bin/bash # # Test that loading and re-saving a session does not change its contents -# Must be run from same directory as the SV binary +# Must be run from directory that contains this script set -e @@ -10,7 +10,7 @@ set -u sv="../sonic-visualiser" -if [ ! -x "$sv" ]; then +if [ ! -f "$sv" -o ! -x "$sv" ]; then echo "This script must be run from the sonic-visualiser/test directory" 1>&2 exit 1 fi