tests: Use G_DEBUG=fatal-warnings for daemon

To catch things like https://github.com/projectatomic/rpm-ostree/issues/826
during testing.

(Really IMO this should be the system-wide default except GNOME and
 lots of apps would start dumping core all over the place... 😢)

Closes: #828
Approved by: jlebon
This commit is contained in:
Colin Walters
2017-06-09 16:16:51 -04:00
committed by Atomic Bot
parent 1331ac837d
commit 6b74f440dc

View File

@ -44,6 +44,12 @@ else
rsync -rlv /var/roothome/sync/insttree/usr/ /usr/
restorecon -v /usr/bin/rpm-ostree
restorecon -v /usr/libexec/rpm-ostreed
mkdir -p /etc/systemd/system/rpm-ostreed.service.d
# For our test suite at least, to catch things like https://github.com/projectatomic/rpm-ostree/issues/826
cat > /etc/systemd/system/rpm-ostreed.service.d/fatal-warnings.conf << EOF
[Service]
Environment=G_DEBUG=fatal-warnings
EOF
systemctl daemon-reload
systemctl restart rpm-ostreed
fi