From 32e5953471520c23975c9ad3eb51620418a0a350 Mon Sep 17 00:00:00 2001 From: Takeshi Nakatani Date: Thu, 31 Aug 2023 09:56:49 +0900 Subject: [PATCH] Fixed bugs about test scripts --- tests/dtor_svr_test.sh | 6 ++++-- tests/test.sh | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) 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