* [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry
@ 2016-04-29 13:45 Hangbin Liu
2016-04-29 13:45 ` [LTP] [PATCH 2/2] network/xinetd: tst_xinetd.exp.2 want get both standard and error output Hangbin Liu
2016-05-20 2:41 ` [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry Hangbin Liu
0 siblings, 2 replies; 3+ messages in thread
From: Hangbin Liu @ 2016-04-29 13:45 UTC (permalink / raw)
To: ltp
Fix error: xinetd_tests.sh: line 323: tst_retry: command not found.
tst_retry was defined in test.sh. Since this is a network test, source
test_net.sh directly.
Signed-off-by: Hangbin Liu <haliu@redhat.com>
---
testcases/network/xinetd/xinetd_tests.sh | 1 +
1 file changed, 1 insertion(+)
diff --git a/testcases/network/xinetd/xinetd_tests.sh b/testcases/network/xinetd/xinetd_tests.sh
index e50a511..58fb98e 100755
--- a/testcases/network/xinetd/xinetd_tests.sh
+++ b/testcases/network/xinetd/xinetd_tests.sh
@@ -63,6 +63,7 @@ init()
export TST_TOTAL=2
export TCID="xinetd"
export TST_COUNT=0
+ . test_net.sh
. daemonlib.sh
if [ -f "/usr/lib/systemd/system/telnet.socket" ]; then
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [LTP] [PATCH 2/2] network/xinetd: tst_xinetd.exp.2 want get both standard and error output
2016-04-29 13:45 [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry Hangbin Liu
@ 2016-04-29 13:45 ` Hangbin Liu
2016-05-20 2:41 ` [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry Hangbin Liu
1 sibling, 0 replies; 3+ messages in thread
From: Hangbin Liu @ 2016-04-29 13:45 UTC (permalink / raw)
To: ltp
tst_xinetd.exp.2 want get both standard and error output, like
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
Connection closed by foreign host.
We will get nothing if use like 2>log 2>&1, fix this by use &>log.
Also fix a tst_retry typo.
Signed-off-by: Hangbin Liu <haliu@redhat.com>
---
testcases/network/xinetd/xinetd_tests.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/testcases/network/xinetd/xinetd_tests.sh b/testcases/network/xinetd/xinetd_tests.sh
index 58fb98e..0bf3bec 100755
--- a/testcases/network/xinetd/xinetd_tests.sh
+++ b/testcases/network/xinetd/xinetd_tests.sh
@@ -388,7 +388,7 @@ test01()
# not terminated by the test gracefully.
if [ $IPV6_ENABLED -eq 1 ]
then
- tst_retry "echo '\x04' | $TELNET_COMM ::1 2>$LTPTMP/tst_xinetd.out.ipv6 2>&1"
+ tst_retry "echo '\x04' | $TELNET_COMM ::1 &> $LTPTMP/tst_xinetd.out.ipv6"
diff -iwB $LTPTMP/tst_xinetd.out.ipv6 $LTPTMP/tst_xinetd.exp.2.ipv6 \
> $LTPTMP/tst_xinetd.err.ipv6 2>&1
RC=$?
@@ -403,7 +403,7 @@ test01()
fi
fi
- test_retry "echo '\x04' | $TELNET_COMM 127.0.0.1 2>$LTPTMP/tst_xinetd.out 2>&1"
+ tst_retry "echo '\x04' | $TELNET_COMM 127.0.0.1 &> $LTPTMP/tst_xinetd.out"
diff -iwB $LTPTMP/tst_xinetd.out $LTPTMP/tst_xinetd.exp.2 \
> $LTPTMP/tst_xinetd.err 2>&1
--
2.5.5
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry
2016-04-29 13:45 [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry Hangbin Liu
2016-04-29 13:45 ` [LTP] [PATCH 2/2] network/xinetd: tst_xinetd.exp.2 want get both standard and error output Hangbin Liu
@ 2016-05-20 2:41 ` Hangbin Liu
1 sibling, 0 replies; 3+ messages in thread
From: Hangbin Liu @ 2016-05-20 2:41 UTC (permalink / raw)
To: ltp
Hi Alexey,
Would you like to help review this patch set?
Thanks
Hangbin
On Fri, Apr 29, 2016 at 09:45:39PM +0800, Hangbin Liu wrote:
> Fix error: xinetd_tests.sh: line 323: tst_retry: command not found.
> tst_retry was defined in test.sh. Since this is a network test, source
> test_net.sh directly.
>
> Signed-off-by: Hangbin Liu <haliu@redhat.com>
> ---
> testcases/network/xinetd/xinetd_tests.sh | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/testcases/network/xinetd/xinetd_tests.sh b/testcases/network/xinetd/xinetd_tests.sh
> index e50a511..58fb98e 100755
> --- a/testcases/network/xinetd/xinetd_tests.sh
> +++ b/testcases/network/xinetd/xinetd_tests.sh
> @@ -63,6 +63,7 @@ init()
> export TST_TOTAL=2
> export TCID="xinetd"
> export TST_COUNT=0
> + . test_net.sh
> . daemonlib.sh
>
> if [ -f "/usr/lib/systemd/system/telnet.socket" ]; then
> --
> 2.5.5
>
>
> --
> Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-05-20 2:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-29 13:45 [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry Hangbin Liu
2016-04-29 13:45 ` [LTP] [PATCH 2/2] network/xinetd: tst_xinetd.exp.2 want get both standard and error output Hangbin Liu
2016-05-20 2:41 ` [LTP] [PATCH 1/2] network/xinetd: source test_net.sh for tst_retry Hangbin Liu
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.