about summary refs log tree commit diff
path: root/nixos/lib
diff options
context:
space:
mode:
authorRobert Hensing2020-12-09 12:59:39 +0100
committerRobert Hensing2020-12-09 13:24:03 +0100
commit72a53016101c2cd8e43fe27cbd270aeaecfc6a41 (patch)
treee32ab130389ccda91bd0e40e5886b2784cb67018 /nixos/lib
parent48929049d775271381737ef908cbcbe5439180b0 (diff)
nixos/lib/testing-python.nix: Wire up passthru
Diffstat (limited to 'nixos/lib')
-rw-r--r--nixos/lib/testing-python.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index 13abfb9a111d..6192be1cd053 100644
--- a/nixos/lib/testing-python.nix
+++ b/nixos/lib/testing-python.nix
@@ -67,6 +67,8 @@ rec {
 
           LOGFILE=/dev/null tests='exec(os.environ["testScript"])' ${driver}/bin/nixos-test-driver
         '';
+
+      passthru = driver.passthru;
     };
 
 
@@ -76,6 +78,7 @@ rec {
     , name ? "unnamed"
       # Skip linting (mainly intended for faster dev cycles)
     , skipLint ? false
+    , passthru ? {}
     , ...
     } @ t:
     let
@@ -137,7 +140,7 @@ rec {
             testScript = testScript';
             preferLocalBuild = true;
             testName = name;
-            passthru = {
+            passthru = passthru // {
               inherit nodes;
             };
           }