diff test/test-session-export.sh @ 2334:a2162fd2e8eb

Merge from branch time-frequency-boxes
author Chris Cannam
date Wed, 25 Sep 2019 13:49:42 +0100
parents 1dbc681aec21
children
line wrap: on
line diff
--- a/test/test-session-export.sh	Thu Sep 19 13:25:37 2019 +0100
+++ b/test/test-session-export.sh	Wed Sep 25 13:49:42 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