From 653a1b67bc29afdf622bf7dddecadbf464907c79 Mon Sep 17 00:00:00 2001 From: Sven van Heugten Date: Mon, 2 Mar 2026 19:57:44 +0100 Subject: [PATCH] Move test.bats to test/git-check-assertions.bats --- default.nix | 6 +++--- test.bats => test/git-check-assertions.bats | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) rename test.bats => test/git-check-assertions.bats (85%) 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" {