[OpenWrt-Devel] [PATCH uci 03/18] tests: shunit2: make it working under CMake

Petr Štetiar ynezz at true.cz
Mon Nov 4 19:36:42 EST 2019


uci is being passed from CMake as environment variable.

Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
 tests/shunit2/tests.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 mode change 100644 => 100755 tests/shunit2/tests.sh

diff --git a/tests/shunit2/tests.sh b/tests/shunit2/tests.sh
old mode 100644
new mode 100755
index ee72c316775d..a7c6d9004987
--- a/tests/shunit2/tests.sh
+++ b/tests/shunit2/tests.sh
@@ -6,7 +6,7 @@ CHANGES_DIR="/tmp/.uci"
 TMP_DIR=${TESTS_DIR}"/tmp"
 FULL_SUITE=${TESTS_DIR}"/full_suite.sh"
 
-UCI_BIN="../uci"
+UCI_BIN=${UCI_BIN:-"../uci"}
 [ -x $UCI_BIN ] || {
 	echo "uci is not present." >&2
 	return 1

_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list