]> asedeno.scripts.mit.edu Git - linux.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)
commit9a6c8bf91b6025b1bb95d4fb454a16019ad22fc4
treea4efa4a9d06142c9e7d4a2d3e11c24f64cc24707
parentd7c04b05c9ca14c55309eb139430283a45c4c25f
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: 56490b623aa0 ("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