Skip to content

Commit

Permalink
devenv: work-around failing test on aarch64 using latest nixpkgs
Browse files Browse the repository at this point in the history
The failing test:

    ```
    ---- test::test_nonexistent_script stdout ----
    thread 'test::test_nonexistent_script' panicked at devenv-tasks/src/lib.rs:1106:9:
    assertion failed: `(left matches right)`

    Diff < left / right > :
    <[
    <    (
    <        "myapp:task_1",
    <        Completed(
    <            Failed(
    <                46.911286ms,
    <                TaskFailure {
    <                    stdout: [],
    <                    stderr: [],
    <                    error: "Task exited with status: exit status: 127",
    <                },
    <            ),
    <        ),
    <    ),
    <]
    >[(task_1,
    >TaskStatus::Completed(TaskCompleted::Failed(_, TaskFailure {
    >stdout: _, stderr: _, error })))]
    >if
    >error == "No such file or directory (os error 2)" && task_1 == "myapp:task_1"
    ```
  • Loading branch information
László Vaskó committed Oct 7, 2024
1 parent de73a88 commit cb09f38
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@
{
inherit unblob;
default = unblob;
inherit (devenv.packages.${system}) devenv;
devenv = devenv.packages.${system}.devenv.overrideAttrs (_: {
checkFlags = [
"--skip=test::test_nonexistent_script"
];
});
});

checks = forAllSystems (system: nixpkgsFor.${system}.unblob.tests // self.devShells.${system});
Expand Down

0 comments on commit cb09f38

Please sign in to comment.