run-tests: add 'eval' command
This commit is contained in:
parent
36358066e4
commit
bb763d6a26
|
@ -119,6 +119,11 @@ debug() {
|
|||
run --interactive
|
||||
}
|
||||
|
||||
evalTest() {
|
||||
nix eval --raw "($(vmTestNixExpr)).outPath"
|
||||
echo # nix eval doesn't print a newline
|
||||
}
|
||||
|
||||
container() {
|
||||
. "$testDir/lib/make-container.sh" "$@"
|
||||
}
|
||||
|
@ -174,4 +179,7 @@ fi
|
|||
|
||||
command="${1:-build}"
|
||||
shift || true
|
||||
if [[ $command == eval ]]; then
|
||||
command=evalTest
|
||||
fi
|
||||
$command "$@"
|
||||
|
|
Loading…
Reference in New Issue
Block a user