Skip to content

Commit 1bb95d3

Browse files
author
meihuisu
committed
run_unit
1 parent a1e4ae3 commit 1bb95d3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/run_unit

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
#!/bin/bash
22

3-
if [ "x${UCVM_INSTALL_PATH}" != "x" ]; then
4-
if [ -f ${UCVM_INSTALL_PATH}/conf/ucvm_env.sh ]; then
3+
if [[ ! -z "${UCVM_INSTALL_PATH}" ]]; then
4+
if [[ -f ${UCVM_INSTALL_PATH}/conf/ucvm_env.sh ]]; then
55
source ${UCVM_INSTALL_PATH}/conf/ucvm_env.sh
66
./unittest
77
exit
88
fi
99
fi
1010

11-
env DYLD_LIBRARY_PATH=../src LD_LIBRARY_PATH=../src ./unittest
11+
env DYLD_LIBRARY_PATH=../src:${DYLD_LIBRARY_PATH} LD_LIBRARY_PATH=../src:${LD_LIBRARY_PATH} ./unittest

0 commit comments

Comments
 (0)