wireguard: selftests: make routing loop test non-fatal
[sfrench/cifs-2.6.git] / tools / testing / selftests / wireguard / netns.sh
index 8a9461aa0878a0b6ea74fc9ec48f370846e39397..8a543200a61adcf5e4157c3129dbd97d3ee9e7ca 100755 (executable)
@@ -280,7 +280,19 @@ read _ _ tx_bytes_before < <(n0 wg show wg1 transfer)
 ! n0 ping -W 1 -c 10 -f 192.168.241.2 || false
 sleep 1
 read _ _ tx_bytes_after < <(n0 wg show wg1 transfer)
-(( tx_bytes_after - tx_bytes_before < 70000 ))
+if ! (( tx_bytes_after - tx_bytes_before < 70000 )); then
+       errstart=$'\x1b[37m\x1b[41m\x1b[1m'
+       errend=$'\x1b[0m'
+       echo "${errstart}                                                ${errend}"
+       echo "${errstart}                   E  R  R  O  R                ${errend}"
+       echo "${errstart}                                                ${errend}"
+       echo "${errstart} This architecture does not do the right thing  ${errend}"
+       echo "${errstart} with cross-namespace routing loops. This test  ${errend}"
+       echo "${errstart} has thus technically failed but, as this issue ${errend}"
+       echo "${errstart} is as yet unsolved, these tests will continue  ${errend}"
+       echo "${errstart} onward. :(                                     ${errend}"
+       echo "${errstart}                                                ${errend}"
+fi
 
 ip0 link del wg1
 ip1 link del wg0