From 06e5f1dbf1a931e2a898fa4edcec4bd24fcca62a Mon Sep 17 00:00:00 2001
From: Jean-Michel Picod <jmichel@google.com>
Date: Thu, 6 Feb 2020 15:31:11 +0100
Subject: [PATCH] Run unit tests also outside of travis

---
 run_desktop_tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/run_desktop_tests.sh b/run_desktop_tests.sh
index 5f7807b..2e7cc80 100755
--- a/run_desktop_tests.sh
+++ b/run_desktop_tests.sh
@@ -36,7 +36,7 @@ cargo check --release --target=thumbv7em-none-eabi --examples
 echo "Checking that CTAP2 builds and links properly (1 set of features)..."
 cargo build --release --target=thumbv7em-none-eabi --features with_ctap1
 
-if [ "${TRAVIS_OS_NAME}" = "linux" ]
+if [ -z "${TRAVIS_OS_NAME}" -o "${TRAVIS_OS_NAME}" = "linux" ]
 then
   echo "Running unit tests on the desktop (release mode)..."
   cd libraries/cbor
-- 
GitLab