]> 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)
commit6b5d34702cb21080b70239f6e952486d87d7fb5e
treea4efa4a9d06142c9e7d4a2d3e11c24f64cc24707
parenta017cd23a12e739a192bd60b74e2e245d8e01072
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: 14ead2755665 ("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