run-tests: add 'instantiate' command

Useful for diffing test derivations.
This commit is contained in:
Erik Arvstedt 2020-12-11 13:26:04 +01:00
parent 8cbdef8bf6
commit 7265742655
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -124,6 +124,10 @@ evalTest() {
echo # nix eval doesn't print a newline
}
instantiate() {
nix-instantiate -E "$(vmTestNixExpr)" "$@"
}
container() {
. "$testDir/lib/make-container.sh" "$@"
}