diff --git a/tests/dtor_svr_test.sh b/tests/dtor_svr_test.sh index 8008a07..21bc8e6 100755 --- a/tests/dtor_svr_test.sh +++ b/tests/dtor_svr_test.sh @@ -191,18 +191,20 @@ echo "${CYEL}------------------------------------------------------------------- # # Check chmpx binary # -if ! CHMPXBIN=$(command -v chmpx | tr -d '\n'); then +if ! command -v chmpx >/dev/null 2>&1; then PRNERR "Not found chmpx binary" exit 1 fi +CHMPXBIN=$(command -v chmpx | tr -d '\n') # # Check k2htouch tool # -if ! K2HTOUCHBIN=$(command -v k2htouch | tr -d '\n'); then +if ! command -v k2htouch >/dev/null 2>&1; then PRNERR "Not found k2htouch tool" exit 1 fi +CHMPXBIN=$(command -v k2htouch | tr -d '\n') #============================================================== # Run processes diff --git a/tests/test.sh b/tests/test.sh index c41d696..b60cea0 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -607,10 +607,11 @@ PRNTITLE "INITIALIZE BEFORE TEST" # # Check binary path # -if ! CHMPXBIN=$(command -v chmpx | tr -d '\n'); then +if ! command -v chmpx >/dev/null 2>&1; then PRNERR "Not found chmpx binary" exit 1 fi +CHMPXBIN=$(command -v chmpx | tr -d '\n') # # Copy plugin script