From 57634b99c1b836d29af878071d4b9afb0be7c1ca Mon Sep 17 00:00:00 2001 From: aszlig Date: Wed, 18 Mar 2015 14:55:10 +0100 Subject: tests: Refactor to something similar as machines/. Similar to callMachine, we now have callTest. The latter uses make-test.nix, so we don't need to import the file explicitly anymore and can just write our VM test by using either an attrset or a lambda function which also gets our own packages in a vuizvui namespace. Signed-off-by: aszlig --- tests/aszlig/i3.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/aszlig') diff --git a/tests/aszlig/i3.nix b/tests/aszlig/i3.nix index e90ff0f4..c6b84b76 100644 --- a/tests/aszlig/i3.nix +++ b/tests/aszlig/i3.nix @@ -1,4 +1,6 @@ -import ../make-test.nix ({ pkgs, ... }: { +{ pkgs, ... }: + +{ name = "i3"; machine = { lib, ... }: { @@ -26,4 +28,4 @@ import ../make-test.nix ({ pkgs, ... }: { $machine->sleep(20); $machine->screenshot("i3"); ''; -}) +} -- cgit 1.4.1