From 726574265501f4675042ade8144a6debe03415ee Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Fri, 11 Dec 2020 13:26:04 +0100 Subject: [PATCH] run-tests: add 'instantiate' command Useful for diffing test derivations. --- test/run-tests.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/run-tests.sh b/test/run-tests.sh index 8809b3f..6508d26 100755 --- a/test/run-tests.sh +++ b/test/run-tests.sh @@ -124,6 +124,10 @@ evalTest() { echo # nix eval doesn't print a newline } +instantiate() { + nix-instantiate -E "$(vmTestNixExpr)" "$@" +} + container() { . "$testDir/lib/make-container.sh" "$@" }