[Fuego] [PATCH 1/2] pppd: use command with absolute path
Liu Gang
liug.fnst at cn.fujitsu.com
Thu Oct 11 03:48:51 UTC 2018
Use absolute path to fix the problem of can not find the commands
when working on /engine/tests/Functional.pppd/fuego_test.sh.
command:pppd,chat,ifconfig
Signed-off-by: Liu Gang <liug.fnst at cn.fujitsu.com>
---
engine/tests/Functional.pppd/fuego_test.sh | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/engine/tests/Functional.pppd/fuego_test.sh b/engine/tests/Functional.pppd/fuego_test.sh
index d080871..11c0ebc 100755
--- a/engine/tests/Functional.pppd/fuego_test.sh
+++ b/engine/tests/Functional.pppd/fuego_test.sh
@@ -9,10 +9,10 @@ function test_build {
pwd; ls
./ppp_response \$(cat slave1) &
sleep 1
- pppd connect 'chat -v \"\" AT OK ATDT5551212 CONNECT' \$(cat slave2) 38400 debug defaultroute nocrtscts idle 60 &
+ /usr/sbin/pppd connect '/usr/sbin/chat -v \"\" AT OK ATDT5551212 CONNECT' \$(cat slave2) 38400 debug defaultroute nocrtscts idle 60 &
sleep 5
- ifconfig -a
- if ifconfig ppp0 ; then
+ /sbin/ifconfig -a
+ if /sbin/ifconfig ppp0 ; then
echo 'TEST-1 OK'
else
echo 'TEST-1 FAILED'
--
2.7.4
More information about the Fuego
mailing list