Make sure output directory is right in test (#1089)

* chore: make sure output directory is right in test

* chore: make --no-profile work again
This commit is contained in:
Veit Heller 2020-12-22 10:36:43 +01:00 committed by GitHub
parent 95cd7852ac
commit b83ff8a024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -136,7 +136,7 @@ main = do
_ <-
ifCarpDirSet
( pure startingContext
>>= load [carpProfile | hasProfile]
>>= load [carpProfile | hasProfile && profile]
>>= execStrs "Preload" preloads
>>= loadOnce coreModulesToLoad
>>= load argFilesToLoad

View File

@ -1,7 +1,8 @@
#!/usr/bin/env sh
# Runs the executable and compares its output to the .expected file
./scripts/carp.sh $1 --log-memory -b && \
export CARP_OPTS="$CARP_OPTS $1 --log-memory -b --no-profile"
./scripts/carp.sh && \
./out/Untitled > test/output/$1.output.actual 2>&1
echo $1