diff --git a/default.nix b/default.nix index 8653ca0..ecb1f69 100644 --- a/default.nix +++ b/default.nix @@ -21,7 +21,7 @@ resholve.mkDerivation { root = ./.; fileset = fs.unions [ ./bin/git-check-assertions - ./test.bats + ./test/git-check-assertions.bats ]; }; @@ -37,13 +37,13 @@ resholve.mkDerivation { checkPhase = '' runHook preCheck - shellcheck bin/git-check-assertions test.bats + shellcheck bin/git-check-assertions test/git-check-assertions.bats git init git config user.email test git config user.name test git checkout -b main git commit --allow-empty -m "initial" - ./test.bats + ./test/git-check-assertions.bats runHook postCheck ''; diff --git a/test.bats b/test/git-check-assertions.bats similarity index 85% rename from test.bats rename to test/git-check-assertions.bats index 96bf6d5..8371aea 100755 --- a/test.bats +++ b/test/git-check-assertions.bats @@ -2,7 +2,7 @@ setup() { DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )" - PATH="$DIR/bin:$PATH" + PATH="$DIR/../bin:$PATH" } @test "can run" {