summaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch')
-rw-r--r--meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch b/meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch
new file mode 100644
index 0000000000..6514ac07a3
--- /dev/null
+++ b/meta-oe/recipes-support/exiv2/exiv2/0001-Use-automake-output-for-tests.patch
@@ -0,0 +1,35 @@
1From 09e5f783b3d1dcb7db6e975e9662c8401a614539 Mon Sep 17 00:00:00 2001
2From: Gyorgy Sarvari <skandigraun@gmail.com>
3Date: Sun, 23 Nov 2025 11:35:50 +0100
4Subject: [PATCH] Use automake output for tests
5
6Convert the Python unittest output to automake output so ptest can
7ingest it.
8
9Upstream-Status: Inappropriate [oe-specific]
10Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com>
11---
12 tests/runner.py | 3 ++-
13 1 file changed, 2 insertions(+), 1 deletion(-)
14
15diff --git a/tests/runner.py b/tests/runner.py
16index adebf83ba..9800cf971 100755
17--- a/tests/runner.py
18+++ b/tests/runner.py
19@@ -4,6 +4,7 @@
20 import argparse
21 import functools
22 import os
23+import putao.unittest
24 import sys
25 import unittest
26 from fnmatch import fnmatchcase
27@@ -93,7 +94,7 @@ if __name__ == '__main__':
28 DEFAULT_ROOT
29 )
30
31- test_res = unittest.runner.TextTestRunner(verbosity=args.verbose)\
32+ test_res = putao.unittest.TestRunner()\
33 .run(discovered_tests)
34
35 sys.exit(0 if len(test_res.failures) + len(test_res.errors) == 0 else 1)