* [LTP] [PATCH] change ip command of route6-change-gw
@ 2019-01-15 2:08 yangj
2019-01-15 14:02 ` Petr Vorel
0 siblings, 1 reply; 3+ messages in thread
From: yangj @ 2019-01-15 2:08 UTC (permalink / raw)
To: ltp
when useing old ip commond to test,it will get the following
error:
RTNETLINK answers: File exists
So I changed this case like the ip command of route4-change-gw
Signed-off-by:jian yang <yangj.fnst@cn.fujitsu.com>
---
testcases/network/stress/route/route6-change-gw | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testcases/network/stress/route/route6-change-gw b/testcases/network/stress/route/route6-change-gw
index 96fd7ee66..05e45b907 100644
--- a/testcases/network/stress/route/route6-change-gw
+++ b/testcases/network/stress/route/route6-change-gw
@@ -245,8 +245,7 @@ test_body()
route -A inet6 del ${dst_network}/64 gw ${IPV6_NETWORK}:${pre_rhost_part_hex} dev $lhost_ifname
;;
2)
- ip -f inet6 route add ${dst_network}/64 via ${IPV6_NETWORK}:${rhost_part_hex} dev $lhost_ifname
- ip -f inet6 route del ${dst_network}/64 via ${IPV6_NETWORK}:${pre_rhost_part_hex} dev $lhost_ifname
+ ip -f inet6 route change ${dst_network}/64 via ${IPV6_NETWORK}:${rhost_part_hex} dev $lhost_ifname
;;
esac
if [ $? -ne 0 ]; then
--
2.17.0
^ permalink raw reply related [flat|nested] 3+ messages in thread* [LTP] [PATCH] change ip command of route6-change-gw
2019-01-15 2:08 [LTP] [PATCH] change ip command of route6-change-gw yangj
@ 2019-01-15 14:02 ` Petr Vorel
0 siblings, 0 replies; 3+ messages in thread
From: Petr Vorel @ 2019-01-15 14:02 UTC (permalink / raw)
To: ltp
Hi Jian,
> when useing old ip commond to test,it will get the following
> error:
> RTNETLINK answers: File exists
> So I changed this case like the ip command of route4-change-gw
> Signed-off-by:jian yang <yangj.fnst@cn.fujitsu.com>
> ---
> testcases/network/stress/route/route6-change-gw | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> diff --git a/testcases/network/stress/route/route6-change-gw b/testcases/network/stress/route/route6-change-gw
> index 96fd7ee66..05e45b907 100644
> --- a/testcases/network/stress/route/route6-change-gw
> +++ b/testcases/network/stress/route/route6-change-gw
> @@ -245,8 +245,7 @@ test_body()
> route -A inet6 del ${dst_network}/64 gw ${IPV6_NETWORK}:${pre_rhost_part_hex} dev $lhost_ifname
> ;;
> 2)
> - ip -f inet6 route add ${dst_network}/64 via ${IPV6_NETWORK}:${rhost_part_hex} dev $lhost_ifname
> - ip -f inet6 route del ${dst_network}/64 via ${IPV6_NETWORK}:${pre_rhost_part_hex} dev $lhost_ifname
> + ip -f inet6 route change ${dst_network}/64 via ${IPV6_NETWORK}:${rhost_part_hex} dev $lhost_ifname
> ;;
> esac
> if [ $? -ne 0 ]; then
Thanks for your patch, merged.
FYI these tests are in terrible state, needs complete rewrite, see [1].
I've already had several attempts in the past, last one [2] still wasn't good
enough. Currently I'm rewritting route*-change-* tests into C using rtnetlink.
Kind regards,
Petr
[1] https://github.com/linux-test-project/ltp/issues/440
[2] https://patchwork.ozlabs.org/project/ltp/list/?series=44924&state=*
^ permalink raw reply [flat|nested] 3+ messages in thread
* [LTP] [PATCH] change ip command of route6-change-gw
@ 2019-01-15 10:55 yangj
0 siblings, 0 replies; 3+ messages in thread
From: yangj @ 2019-01-15 10:55 UTC (permalink / raw)
To: ltp
when useing old ip commond to test,it will get the following
error:
RTNETLINK answers: File exists
So I changed this case like the ip command of route4-change-gw
Signed-off-by:jian yang <yangj.fnst@cn.fujitsu.com>
---
testcases/network/stress/route/route6-change-gw | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/testcases/network/stress/route/route6-change-gw b/testcases/network/stress/route/route6-change-gw
index 96fd7ee66..05e45b907 100644
--- a/testcases/network/stress/route/route6-change-gw
+++ b/testcases/network/stress/route/route6-change-gw
@@ -245,8 +245,7 @@ test_body()
route -A inet6 del ${dst_network}/64 gw ${IPV6_NETWORK}:${pre_rhost_part_hex} dev $lhost_ifname
;;
2)
- ip -f inet6 route add ${dst_network}/64 via ${IPV6_NETWORK}:${rhost_part_hex} dev $lhost_ifname
- ip -f inet6 route del ${dst_network}/64 via ${IPV6_NETWORK}:${pre_rhost_part_hex} dev $lhost_ifname
+ ip -f inet6 route change ${dst_network}/64 via ${IPV6_NETWORK}:${rhost_part_hex} dev $lhost_ifname
;;
esac
if [ $? -ne 0 ]; then
--
2.17.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-01-15 14:02 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-15 2:08 [LTP] [PATCH] change ip command of route6-change-gw yangj
2019-01-15 14:02 ` Petr Vorel
-- strict thread matches above, loose matches on Subject: below --
2019-01-15 10:55 yangj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox