Skip to content

Commit

Permalink
Do not test nixpkgs-fmt on current directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tbidne committed Nov 7, 2024
1 parent 280e3ef commit 768390e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/run_tools.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 768390e

Please sign in to comment.