Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/tests/switch-test: Ensures the test fails on failure #55744

Merged
merged 1 commit into from Feb 14, 2019

Conversation

samueldr
Copy link
Member

The | tee invocation always masked the return value of the
switch-to-configuration test.

~ $ false | tee && echo "oh no"
oh no

The added wrapper script will still output everything to stderr, while
passing failures to the test harness.

Things done

This was verified as failing by failing to fail (whew) with the kernel regression in #53672. With this fix applied, and the proper kernel update applied (revert the kernel upgrade revert) it will fail as expected.

  • ✔️ Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • ✔️ NixOS
  • ✔️ Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • ✔️ Assured whether relevant documentation is up to date
  • ✔️ Fits CONTRIBUTING.md.

The `| tee` invocation always masked the return value of the
switch-to-configuration test.

```
~ $ false | tee && echo "oh no"
oh no
```

The added wrapper script will still output everything to stderr, while
passing failures to the test harness.
@xeji xeji merged commit 98419a0 into NixOS:master Feb 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants