-
Notifications
You must be signed in to change notification settings - Fork 11
Open
Description
Recently, I have been bisecting GNOME failing to start in VM. The failure could be discerned by a permission error being logged shortly after boot but the test VM continued running, trying to start the session. And when that failed, the test got stuck waiting for X that would never arrive.
In the end I decided to use the following bisection script but it would be nice if nix-build-status
could terminate the build immediately after `--failure-line appears.
content=$(timeout 1m nix-build nixos/release-combined.nix -A nixos.tests.gnome3-xorg.x86_64-linux 2>&1)
if [[ $content =~ "systemd-logind: failed to take device /dev/dri/card0: Operation not permitted" ]]; then
exit 1
elif [[ $content =~ 'systemd-logind: got fd for /dev/dri/card0' ]]; then
exit 0
else
exit 125
fi
das-g
Metadata
Metadata
Assignees
Labels
No labels