From 9f46d1e4d89206d595371439c8373a10bc903662 Mon Sep 17 00:00:00 2001 From: Ashley Yakeley Date: Wed, 18 Oct 2023 01:38:18 -0700 Subject: [PATCH] Fix Nix build --- .gitignore | 4 ++-- Pinafore/pinafore-app/app/main/Test.hs | 2 +- .../pinafore-app/{test/golden => app/main/test}/.gitignore | 0 .../{test/golden => app/main/test}/option-help.ref | 0 Pinafore/pinafore-app/test/out/.gitignore | 1 + 5 files changed, 4 insertions(+), 3 deletions(-) rename Pinafore/pinafore-app/{test/golden => app/main/test}/.gitignore (100%) rename Pinafore/pinafore-app/{test/golden => app/main/test}/option-help.ref (100%) create mode 100644 Pinafore/pinafore-app/test/out/.gitignore diff --git a/.gitignore b/.gitignore index fac63999a..7ea95539c 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,5 @@ -local/ -out/ +/local/ +/out/ .build .stack-root .stack-work diff --git a/Pinafore/pinafore-app/app/main/Test.hs b/Pinafore/pinafore-app/app/main/Test.hs index b810736a8..07f593a3a 100644 --- a/Pinafore/pinafore-app/app/main/Test.hs +++ b/Pinafore/pinafore-app/app/main/Test.hs @@ -88,7 +88,7 @@ testOptionParsing = testOptionHelp :: TestTree testOptionHelp = - testHandleVsFileInDir ("test" "golden") "option-help" $ \h -> do + testHandleVsFileInDir ("app/main/test") "option-help" $ \h -> do let pr = execParserPure defaultPrefs optParserInfo ["--help"] case pr of Failure (ParserFailure f) -> diff --git a/Pinafore/pinafore-app/test/golden/.gitignore b/Pinafore/pinafore-app/app/main/test/.gitignore similarity index 100% rename from Pinafore/pinafore-app/test/golden/.gitignore rename to Pinafore/pinafore-app/app/main/test/.gitignore diff --git a/Pinafore/pinafore-app/test/golden/option-help.ref b/Pinafore/pinafore-app/app/main/test/option-help.ref similarity index 100% rename from Pinafore/pinafore-app/test/golden/option-help.ref rename to Pinafore/pinafore-app/app/main/test/option-help.ref diff --git a/Pinafore/pinafore-app/test/out/.gitignore b/Pinafore/pinafore-app/test/out/.gitignore new file mode 100644 index 000000000..f47cb2045 --- /dev/null +++ b/Pinafore/pinafore-app/test/out/.gitignore @@ -0,0 +1 @@ +*.out