mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2026-06-05 02:50:46 +00:00
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>
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user