summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGyorgy Sarvari <skandigraun@gmail.com>2025-10-18 14:40:03 +0200
committerKhem Raj <raj.khem@gmail.com>2025-10-18 09:31:14 -0700
commit8b6b188fe0a8b7c00630eb0544db7b6c9cdabd06 (patch)
treef7a2621cd91ae10d5105df425b54c3d03430aec9
parentb833fdc421997ac124f23f8dffc9f70c34bc15ad (diff)
downloadmeta-openembedded-8b6b188fe0a8b7c00630eb0544db7b6c9cdabd06.tar.gz
sdbus-c++: fix ptests
The /etc/machine-id file with some value is required for the integration tests, otherwise it fails with the following error: terminate called after throwing an instance of 'sdbus::Error' what(): [org.freedesktop.DBus.Error.FileNotFound] Failed to process bus requests (No such file or directory) Aborted Signed-off-by: Gyorgy Sarvari <skandigraun@gmail.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rwxr-xr-xmeta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest b/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest
index 5e285b39e0..845ba7d8c6 100755
--- a/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest
+++ b/meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest
@@ -1,6 +1,11 @@
1#!/bin/sh 1#!/bin/sh
2set -e 2set -e
3 3
4# the integration tests require some machine id
5if [ ! -f /etc/machine-id ]; then
6 echo 12345678901234567890123456789012 > /etc/machine-id
7fi
8
4./sdbus-c++-unit-tests 2>&1 && echo "PASS: sdbus-c++-unit-tests" || echo "FAIL: sdbus-c++-unit-tests" 9./sdbus-c++-unit-tests 2>&1 && echo "PASS: sdbus-c++-unit-tests" || echo "FAIL: sdbus-c++-unit-tests"
5 10
6./sdbus-c++-integration-tests 2>&1 && echo "PASS: sdbus-c++-integration-tests" || echo "FAIL: sdbus-c++-integration-tests" 11./sdbus-c++-integration-tests 2>&1 && echo "PASS: sdbus-c++-integration-tests" || echo "FAIL: sdbus-c++-integration-tests"