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