Fix pmtu.sh result checking in ubuntu_kernel_selftests
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-kernel-tests |
New
|
Undecided
|
Unassigned |
Bug Description
[Impact]
In pmtu.sh test from ubuntu_
[Fix]
* 63e201916b selftests: pmtu.sh: fix result checking
[Test Plan]
Run the patched pmtu.sh from kernel tree. Also apply the following patch to validate this fix:
diff --git a/tools/
index f838dd3..cb62a75 100755
--- a/tools/
+++ b/tools/
@@ -266,7 +266,9 @@ tests="
- pmtu_ipv6_
+ pmtu_ipv6_
+ emit_fail Test that will emit fail result 0
+ emit_pass Test that will emit pass result 0"
NS_A="ns-A"
NS_B="ns-B"
@@ -2232,6 +2234,13 @@ test_pmtu_
}
+test_emit_fail() {
+ false
+}
+test_emit_pass() {
+ true
+}
+
usage() {
echo
echo "$0 [OPTIONS] [TEST]..."
Check the return value of this script, it should be 1
[Regression Potential]
This is just changing test result processing behaviour, no actual impact to any kernel function. But we might see new failure discovered by this test.
This has landed via stable update bug 2049432 since Ubuntu- 5.15.0- 96.106