Commit b82fc5e0 authored by Vitaly Ostrosablin's avatar Vitaly Ostrosablin Committed by Pavel Emelyanov

test: fix shell script tests (conntracks & route_rules)

Test seem to assume that zdtm lib directory is on PATH, but if it's not
- calling for parseargs.sh would fail (if cwd is static). Therefore,
this patch changes this to ../lib/parseargs.sh which should be fine both
for zdtm and vzt-cpt.

travis-ci: success for test: fix shell script tests (conntracks & route_rules)
Signed-off-by: 's avatarVitaly Ostrosablin <vostrosablin@virtuozzo.com>
Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 9a5ff1a0
......@@ -45,8 +45,7 @@ do_stop()
echo "PASS" > $outfile
}
tmpargs="$(parseargs.sh --name=$0 \
tmpargs="$(../lib/parseargs.sh --name=$0 \
--flags-req=statefile,outfile \
--flags-opt="start,stop" -- "$@")" ||
die "can't parse command line"
......
......@@ -60,8 +60,7 @@ do_stop()
echo "PASS" > $outfile
}
tmpargs="$(parseargs.sh --name=$0 \
tmpargs="$(../lib/parseargs.sh --name=$0 \
--flags-req=statefile,outfile \
-- "$@")" ||
die "can't parse command line"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment