]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: pmtu.sh: Remove quotes around commands in setup_xfrm
authorDavid Ahern <dsahern@gmail.com>
Thu, 16 May 2019 17:41:31 +0000 (10:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 May 2019 21:28:22 +0000 (14:28 -0700)
commit5c2122fa1044491e38c11eb0ed7538d4dc507090
treea4efa4a9d06142c9e7d4a2d3e11c24f64cc24707
parent7e88b2b7c45e2f5fea042925f47acfd4b134ca58
selftests: pmtu.sh: Remove quotes around commands in setup_xfrm

The first command in setup_xfrm is failing resulting in the test getting
skipped:

+ ip netns exec ns-B ip -6 xfrm state add src fd00:1::a dst fd00:1::b spi 0x1000 proto esp aead 'rfc4106(gcm(aes))' 0x0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f0f 128 mode tunnel
+ out=RTNETLINK answers: Function not implemented
...
  xfrm6 not supported
TEST: vti6: PMTU exceptions                                         [SKIP]
  xfrm4 not supported
TEST: vti4: PMTU exceptions                                         [SKIP]
...

The setup command started failing when the run_cmd option was added.
Removing the quotes fixes the problem:
...
TEST: vti6: PMTU exceptions                                         [ OK ]
TEST: vti4: PMTU exceptions                                         [ OK ]
...

Fixes: b2e77b56ff7d ("selftests: Add debugging options to pmtu.sh")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/pmtu.sh