Skip to content
This repository has been archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
base: 88b48753acfa
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
compare: 776f084cf1bc
Choose a head ref
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Dec 7, 2018

  1. nixos/tests: Fix wrong arch in runInMachine test

    Since 83b27f6, the tests were moved
    into all-tests.nix and some of the tooling has changed so that
    subattributes of test expressions are now recursively evaluated until a
    derivation with a .test attribute has been found.
    
    Unfortunately this isn't the case for all of the tests and the
    runInMachine doesn't use the makeTest function other tests are using but
    instead uses runInMachine, which doesn't generate a .test attribute.
    
    Whener a .test attribute wasn't found by the new handleTest function, it
    recurses down again until there is no value left that is an attribute
    set and subsequently returns its unchanged value. This however has the
    drawback that instead of getting different attributes for each
    architecture we only get the last architecture in the supportedSystems
    list.
    
    In the case of the release.nix, the last architecture in
    supportedSystems is "aarch64-linux", so the runInMachine test is always
    built on that architecture.
    
    In order to work around this, I changed runInMachine to emit a .test
    attribute so that it looks to handleTest like it was a test created via
    makeTest.
    
    Signed-off-by: aszlig <aszlig@nix.build>
    aszlig committed Dec 7, 2018
    Copy the full SHA
    776f084 View commit details
    Browse the repository at this point in the history