From 768390e4d5f29c59fa0f2090f6b0ef18fe826158 Mon Sep 17 00:00:00 2001 From: Tommy Bidne Date: Thu, 7 Nov 2024 17:24:04 +1300 Subject: [PATCH] Do not test nixpkgs-fmt on current directory --- test/run_tools.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/run_tools.sh b/test/run_tools.sh index b258e97..3ea2428 100755 --- a/test/run_tools.sh +++ b/test/run_tools.sh @@ -22,8 +22,10 @@ export tools=" run_tool () { if [[ $1 == "nixpkgs-fmt" ]]; then - # nixpkgs-fmt --help exits with 1 - cmd_str="nix run .#nixpkgs-fmt" + # nixpkgs-fmt --help exits with 1. We include the test dir -- with no + # .nix files -- since otherwise running locally will format our nix files + # here, which is mildly annoying. + cmd_str="nix run .#nixpkgs-fmt -- --dir ./test" elif [[ $1 == "help" ]]; then cmd_str="nix run .#help" elif [[ $1 == "version" ]]; then