From: Mingli Yu
Pass "--use-system-commands" option when run tabfiles-tags case as
we don't deploy the command under /usr/lib64/util-linux/ptest folder
by default.
Fixes:
# cd /usr/lib64/util-linux/ptest/
# ./tests/ts/libmount/tabfiles-tags
[snip]
./ts/libmount/../../functions.sh: line 652: /usr/lib64/util-linux/ptest/blkid:
No such file or directory
FAILED (libmount/tabfiles-tags)'
Signed-off-by: Mingli Yu
---
meta/recipes-core/util-linux/util-linux.inc | 1 +
...-tags-add-use-system-commands-option.patch | 35 +++
2 files changed, 36 insertions(+)
create mode 100644
meta/recipes-core/util-linux/util-linux/0001-tabfiles-tags-add-use-system-commands-option.patch
diff --git a/meta/recipes-core/util-linux/util-linux.inc
b/meta/recipes-core/util-linux/util-linux.inc
index 1e3cd28801..6aebe22036 100644
--- a/meta/recipes-core/util-linux/util-linux.inc
+++ b/meta/recipes-core/util-linux/util-linux.inc
@@ -35,6 +35,7 @@ SRC_URI =
"${KERNELORG_MIRROR}/linux/utils/util-linux/v${MAJOR_VERSION}/util-lin
file://run-ptest \
file://display_testname_for_subtest.patch \
file://avoid_parallel_tests.patch \
+ file://0001-tabfiles-tags-add-use-system-commands-option.patch \
"
SRC_URI[sha256sum] =
"6a0764c1aae7fb607ef8a6dd2c0f6c47d5e5fd27aa08820abaad9ec14e28e9d9"
diff --git
a/meta/recipes-core/util-linux/util-linux/0001-tabfiles-tags-add-use-system-commands-option.patch
b/meta/recipes-core/util-linux/util-linux/0001-tabfiles-tags-add-use-system-commands-option.patch
new file mode 100644
index 00..9f5a3c2d02
--- /dev/null
+++
b/meta/recipes-core/util-linux/util-linux/0001-tabfiles-tags-add-use-system-commands-option.patch
@@ -0,0 +1,35 @@
+From be3ecff8b1bc1de4d29ca6381ee9ab42e6c15947 Mon Sep 17 00:00:00 2001
+From: Mingli Yu
+Date: Fri, 12 Nov 2021 15:33:53 +0800
+Subject: [PATCH] tabfiles-tags: add use-system-commands option
+
+Pass --use-system-commands option to make blkid command available
+Fixes:
+ # ./ts/libmount/tabfiles-tags
+ [snip]
+ ./ts/libmount/../../functions.sh: line 652:
/usr/lib64/util-linux/ptest/blkid: No such file or directory
+ FAILED (libmount/tabfiles-tags)'
+
+Upstream-Status: Inappropriate [configuration specific]
+
+Signed-off-by: Mingli Yu
+---
+ tests/ts/libmount/tabfiles-tags | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/ts/libmount/tabfiles-tags b/tests/ts/libmount/tabfiles-tags
+index 69b06a9..17176ef 100755
+--- a/tests/ts/libmount/tabfiles-tags
b/tests/ts/libmount/tabfiles-tags
+@@ -4,7 +4,7 @@ TS_TOPDIR="${0%/*}/../.."
+ TS_DESC="tags"
+
+ . $TS_TOPDIR/functions.sh
+-ts_init "$*"
++ts_init "$* --use-system-commands"
+
+ ts_skip_nonroot
+
+--
+2.17.1
+
--
2.17.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#158214):
https://lists.openembedded.org/g/openembedded-core/message/158214
Mute This Topic: https://lists.openembedded.org/mt/87003300/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-