diff options
Diffstat (limited to 'meta/recipes-core/ifupdown/files/tweak-ptest-script.patch')
-rw-r--r-- | meta/recipes-core/ifupdown/files/tweak-ptest-script.patch | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch b/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch index d7600cf243..fa6bb84df3 100644 --- a/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch +++ b/meta/recipes-core/ifupdown/files/tweak-ptest-script.patch | |||
@@ -1,11 +1,19 @@ | |||
1 | Tweak tests of ifupdown to make it work with oe-core ptest framework. | 1 | From a6bb2ac5f521c678abbbdb1960d28f750f4357a6 Mon Sep 17 00:00:00 2001 |
2 | From: Kai Kang <kai.kang@windriver.com> | ||
3 | Date: Mon, 3 Feb 2020 17:33:11 +0800 | ||
4 | Subject: [PATCH] Tweak tests of ifupdown to make it work with oe-core ptest | ||
5 | framework. | ||
2 | 6 | ||
3 | Upstream-Status: Inappropriate [oe-core specific] | 7 | Upstream-Status: Inappropriate [oe-core specific] |
4 | 8 | ||
5 | Signed-off-by: Kai Kang <kai.kang@windriver.com> | 9 | Signed-off-by: Kai Kang <kai.kang@windriver.com> |
6 | 10 | ||
11 | --- | ||
12 | tests/testbuild-linux | 11 ++++++----- | ||
13 | 1 file changed, 6 insertions(+), 5 deletions(-) | ||
14 | |||
7 | diff --git a/tests/testbuild-linux b/tests/testbuild-linux | 15 | diff --git a/tests/testbuild-linux b/tests/testbuild-linux |
8 | index 1181ea0..d5c1814 100755 | 16 | index 2c69856..05f0703 100755 |
9 | --- a/tests/testbuild-linux | 17 | --- a/tests/testbuild-linux |
10 | +++ b/tests/testbuild-linux | 18 | +++ b/tests/testbuild-linux |
11 | @@ -1,6 +1,7 @@ | 19 | @@ -1,6 +1,7 @@ |
@@ -16,8 +24,8 @@ index 1181ea0..d5c1814 100755 | |||
16 | +dir=$curdir/linux | 24 | +dir=$curdir/linux |
17 | 25 | ||
18 | result=true | 26 | result=true |
19 | for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do | 27 | for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18 19; do |
20 | @@ -12,7 +13,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do | 28 | @@ -12,7 +13,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18 19; do |
21 | echo "Testcase $test: $args" | 29 | echo "Testcase $test: $args" |
22 | 30 | ||
23 | exitcode=0 | 31 | exitcode=0 |
@@ -26,7 +34,7 @@ index 1181ea0..d5c1814 100755 | |||
26 | >$dir/up-res-out.$test 2>$dir/up-res-err.$test || exitcode=$? | 34 | >$dir/up-res-out.$test 2>$dir/up-res-err.$test || exitcode=$? |
27 | 35 | ||
28 | (echo "exit code: $exitcode"; | 36 | (echo "exit code: $exitcode"; |
29 | @@ -20,7 +21,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do | 37 | @@ -20,7 +21,7 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18 19; do |
30 | echo "====stderr===="; cat $dir/up-res-err.$test) > $dir/up-res.$test | 38 | echo "====stderr===="; cat $dir/up-res-err.$test) > $dir/up-res.$test |
31 | 39 | ||
32 | exitcode=0 | 40 | exitcode=0 |
@@ -35,7 +43,7 @@ index 1181ea0..d5c1814 100755 | |||
35 | >$dir/down-res-out.$test 2>$dir/down-res-err.$test || exitcode=$? | 43 | >$dir/down-res-out.$test 2>$dir/down-res-err.$test || exitcode=$? |
36 | 44 | ||
37 | (echo "exit code: $exitcode"; | 45 | (echo "exit code: $exitcode"; |
38 | @@ -28,9 +29,9 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18; do | 46 | @@ -28,9 +29,9 @@ for test in 1 2 3 4 5 6 7 8 9 10 11 16 17 18 19; do |
39 | echo "====stderr===="; cat $dir/down-res-err.$test) > $dir/down-res.$test | 47 | echo "====stderr===="; cat $dir/down-res-err.$test) > $dir/down-res.$test |
40 | 48 | ||
41 | if diff -ub $dir/up.$test $dir/up-res.$test && diff -ub $dir/down.$test $dir/down-res.$test; then | 49 | if diff -ub $dir/up.$test $dir/up-res.$test && diff -ub $dir/down.$test $dir/down-res.$test; then |