Skip to content

testers.testBuildFailure: fix#375585

Merged
philiptaron merged 1 commit into
NixOS:masterfrom
wolfgangwalther:fix-test-build-failure
Jan 21, 2025
Merged

testers.testBuildFailure: fix#375585
philiptaron merged 1 commit into
NixOS:masterfrom
wolfgangwalther:fix-test-build-failure

Conversation

@wolfgangwalther
Copy link
Copy Markdown
Contributor

@wolfgangwalther wolfgangwalther commented Jan 21, 2025

Introduced by cf127c9, which changed default-builder.sh, but forgot to tell testBuildFailure about it.

As reported in #357053 (comment).

Things done

Both tests.testers.testBuildFailure and tests.stdenv.outputs-no-out pass now. Also grepped for default-builder.sh - nobody else uses it, so this PR should fix the issue for good.


Add a 👍 reaction to pull requests you find important.

Introduced by cf127c9, which changed
default-builder.sh, but forgot to tell testBuildFailure about it.
@github-actions github-actions Bot added the 6.topic: testing Tooling for automated testing of packages and modules label Jan 21, 2025
Copy link
Copy Markdown
Contributor

@philiptaron philiptaron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, and can confirm that the two tests pass.

Maybe unrelated, but nix-build -A tests.replaceVars.replaceVarsWith does not pass. I was using this as a test of a usage of this tester.

@philiptaron philiptaron merged commit 8ec2493 into NixOS:master Jan 21, 2025
@wolfgangwalther wolfgangwalther deleted the fix-test-build-failure branch January 21, 2025 17:23
@wolfgangwalther
Copy link
Copy Markdown
Contributor Author

Maybe unrelated, but nix-build -A tests.replaceVars.replaceVarsWith does not pass. I was using this as a test of a usage of this tester.

I wonder whether that ever worked. It sure looks like it should fail, because the succeeds case compares a directory vs a file. I don't understand why that didn't show up in #365347.

@philiptaron
Copy link
Copy Markdown
Contributor

philiptaron commented Jan 21, 2025

Me either. I think I ran it!? But it's definitely not right at the present moment, and the test failure makes sense. I merged this PR because I convinced myself it was unrelated.

@wolfgangwalther
Copy link
Copy Markdown
Contributor Author

I merged this PR because I convinced myself it was unrelated.

Agreed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: testing Tooling for automated testing of packages and modules

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants