changeset 2324:1dbc681aec21 time-frequency-boxes

Fix directory test
author Chris Cannam
date Fri, 20 Sep 2019 14:20:17 +0100
parents 4e4e4fa2d6e2
children c64dcdb8063b
files test/test-session-export.sh
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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