Fix thinko in run/tests on macOS.
authorCarl Hetherington <cth@carlh.net>
Tue, 25 Jun 2024 18:10:02 +0000 (20:10 +0200)
committerCarl Hetherington <cth@carlh.net>
Tue, 25 Jun 2024 18:10:02 +0000 (20:10 +0200)
run/tests

index 9bbfb3fc647a1c68c7e15840874668c4a41a75cb..4e38dbfce2fd476dc9d833b1b75f9aac96912551 100755 (executable)
--- a/run/tests
+++ b/run/tests
@@ -86,7 +86,11 @@ if [ "$(uname)" == "Darwin" ]; then
     ln -s ../../../openssl/apps/openssl build/test/openssl
     # We need to find ffcmp in here
     export PATH=$PATH:$HOME/workspace/bin
-    export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$environment/$(uname -m)/11.0/lib
+    if [ -d "$environment/$(uname -m)/11.0" ]; then
+        export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$environment/$(uname -m)/11.0/lib
+    else
+        export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:$environment/$(uname -m)/10.10/lib
+    fi
 fi
 
 if [ "$check" == "1" ]; then