Skip to content

Commit 2ad6416

Browse files
committed
Fix test
1 parent 51d627e commit 2ad6416

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/tests.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,12 @@ fi
9696

9797
if [ "$TESTS" == "multi-target" ] || [ "$TESTS" == "all" ]; then
9898
printf "*** Checking that a nix-shell works for a multi-target project...\n" >& 2
99+
TEST_CABAL_DIR=$(mktemp -d)
99100
nix-shell $NIX_BUILD_ARGS \
100101
--pure ./default.nix \
101102
--argstr compiler-nix-name "$GHC" \
102103
-A cabal-simple.test-shell \
103-
--run 'cd cabal-simple && CABAL_DIR=$(mktemp -d) cabal new-build'
104+
--run "cd cabal-simple && CABAL_DIR=$TEST_CABAL_DIR cabal update && CABAL_DIR=$TEST_CABAL_DIR cabal build"
104105
echo >& 2
105106
fi
106107

0 commit comments

Comments
 (0)