summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/quilt
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-01-20 12:53:13 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-01-24 22:06:51 +0000
commit6574b44406ae8fa320199f848e0d577f3f404d85 (patch)
treeb6039318be665ce98a2d9006b554733e0caae411 /meta/recipes-devtools/quilt
parent22fbee4f127b073f19bc434d1b2ea891772dd6c7 (diff)
downloadpoky-6574b44406ae8fa320199f848e0d577f3f404d85.tar.gz
quilt: use upstreamed faildiff.test fix
(From OE-Core rev: 50b81a263187af4452d3b99967bffd01c6ddb476) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/quilt')
-rw-r--r--meta/recipes-devtools/quilt/quilt/faildiff-order.patch47
1 files changed, 30 insertions, 17 deletions
diff --git a/meta/recipes-devtools/quilt/quilt/faildiff-order.patch b/meta/recipes-devtools/quilt/quilt/faildiff-order.patch
index 40f3c2636a..f22065a250 100644
--- a/meta/recipes-devtools/quilt/quilt/faildiff-order.patch
+++ b/meta/recipes-devtools/quilt/quilt/faildiff-order.patch
@@ -1,28 +1,41 @@
1This test assumes that two lines that are output on different streams (stdout 1Upstream-Status: Backport
2and stderr) will be read in the same order, but thanks to buffering that may not 2Signed-off-by: Ross Burton <ross.burton@arm.com>
3be the case.
4 3
5Change the expected lines to be regexs that each match both expected lines, so 4From 4dfe7f9e702c85243a71e4de267a13e434b6d6c2 Mon Sep 17 00:00:00 2001
6the test always works no matter the actual order the lines are read in. 5From: Jean Delvare <jdelvare@suse.de>
6Date: Fri, 20 Jan 2023 12:56:08 +0100
7Subject: [PATCH] test: Fix a race condition
7 8
8Bug filed at https://savannah.nongnu.org/bugs/index.php?63651 to discuss a 9The test suite does not differentiate between stdout and stderr. When
9proper solution. 10messages are printed to both, the order in which they will reach us
11is apparently not guaranteed. Ideally this would be deterministic, but
12until then, explicitly test stdout and stderr separately in the test
13case itself. Otherwise the test suite fails randomly, which is a pain
14for distribution package maintainers.
10 15
11Upstream-Status: Inappropriate 16This fixes bug #63651 reported by Ross Burton:
12Signed-off-by: Ross Burton <ross.burton@arm.com> 17https://savannah.nongnu.org/bugs/index.php?63651
18
19Signed-off-by: Jean Delvare <jdelvare@suse.de>
20---
21 test/faildiff.test | 3 ++-
22 1 file changed, 2 insertions(+), 1 deletion(-)
13 23
14diff --git a/test/faildiff.test b/test/faildiff.test 24diff --git a/test/faildiff.test b/test/faildiff.test
15index 5afb8e3..5f32f71 100644 25index 5afb8e3..0444c15 100644
16--- a/test/faildiff.test 26--- a/test/faildiff.test
17+++ b/test/faildiff.test 27+++ b/test/faildiff.test
18@@ -28,8 +28,8 @@ What happens on binary files? 28@@ -27,8 +27,9 @@ What happens on binary files?
29 > File test.bin added to patch %{P}test.diff
19 30
20 $ printf "\\003\\000\\001" > test.bin 31 $ printf "\\003\\000\\001" > test.bin
21 $ quilt diff -pab --no-index 32- $ quilt diff -pab --no-index
22- >~ (Files|Binary files) a/test\.bin and b/test\.bin differ 33+ $ quilt diff -pab --no-index 2>/dev/null
23- > Diff failed on file 'test.bin', aborting 34 >~ (Files|Binary files) a/test\.bin and b/test\.bin differ
24+ >~ (.*[Ff]iles a/test\.bin and b/test\.bin differ|Diff failed on file 'test.bin', aborting) 35+ $ quilt diff -pab --no-index >/dev/null
25+ >~ (.*[Ff]iles a/test\.bin and b/test\.bin differ|Diff failed on file 'test.bin', aborting) 36 > Diff failed on file 'test.bin', aborting
26 $ echo %{?} 37 $ echo %{?}
27 > 1 38 > 1
28 39--
402.34.1
41