From b3bc71c4811e802cefcbadb5015e788ea9ad0d96 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Tue, 8 Nov 2016 19:04:59 +0100 Subject: [PATCH] tests: extract micropython binary to variable in run_tests.sh --- tests/run_tests.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/run_tests.sh b/tests/run_tests.sh index 730b4e571b..3f40664d2a 100755 --- a/tests/run_tests.sh +++ b/tests/run_tests.sh @@ -1,4 +1,5 @@ #!/bin/bash +MICROPYTHON=../vendor/micropython/unix/micropython results=() error=0 if [ -z "$*" ]; then @@ -8,7 +9,7 @@ else fi for i in $list; do echo - if ../vendor/micropython/unix/micropython $i; then + if $MICROPYTHON $i; then results+=("OK $i") else results+=("FAIL $i")