selftests: mptcp: userspace_pm: report errors with 'remove' tests
[platform/kernel/linux-starfive.git] / tools / testing / selftests / net / mptcp / userspace_pm.sh
index 841a67a..b180133 100755 (executable)
@@ -423,6 +423,7 @@ test_remove()
                stdbuf -o0 -e0 printf "[OK]\n"
        else
                stdbuf -o0 -e0 printf "[FAIL]\n"
+               exit 1
        fi
 
        # RM_ADDR using an invalid addr id should result in no action
@@ -437,6 +438,7 @@ test_remove()
                stdbuf -o0 -e0 printf "[OK]\n"
        else
                stdbuf -o0 -e0 printf "[FAIL]\n"
+               exit 1
        fi
 
        # RM_ADDR from the client to server machine