Skip to content

Allow marking as bad immediately after encountering --failure-line #7

@jtojnar

Description

@jtojnar

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions