Message ID | 20251018124003.1362665-1-skandigraun@gmail.com |
---|---|
State | Under Review |
Headers | show |
Series | [meta-oe] sdbus-c++: fix ptests | expand |
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 @@ #!/bin/sh set -e +# the integration tests require some machine id +if [ ! -f /etc/machine-id ]; then + echo 12345678901234567890123456789012 > /etc/machine-id +fi + ./sdbus-c++-unit-tests 2>&1 && echo "PASS: sdbus-c++-unit-tests" || echo "FAIL: sdbus-c++-unit-tests" ./sdbus-c++-integration-tests 2>&1 && echo "PASS: sdbus-c++-integration-tests" || echo "FAIL: sdbus-c++-integration-tests"
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> --- meta-oe/recipes-core/sdbus-c++/sdbus-c++/run-ptest | 5 +++++ 1 file changed, 5 insertions(+)