summary refs log tree commit diff
path: root/nixos/lib/testing-python.nix
diff options
context:
space:
mode:
authorRobert Hensing <robert@roberthensing.nl>2021-05-03 13:33:41 +0200
committerRobert Hensing <robert@roberthensing.nl>2021-05-03 13:33:41 +0200
commit162b8fba1278900be3ff940a47009e67c00c9969 (patch)
tree25df5b360b697a25e3fdbee1eebf947f551a8fe1 /nixos/lib/testing-python.nix
parent212c4e8f7327324debecb32dc773bbadda08c3d8 (diff)
downloadnixpkgs-162b8fba1278900be3ff940a47009e67c00c9969.tar
nixpkgs-162b8fba1278900be3ff940a47009e67c00c9969.tar.gz
nixpkgs-162b8fba1278900be3ff940a47009e67c00c9969.tar.bz2
nixpkgs-162b8fba1278900be3ff940a47009e67c00c9969.tar.lz
nixpkgs-162b8fba1278900be3ff940a47009e67c00c9969.tar.xz
nixpkgs-162b8fba1278900be3ff940a47009e67c00c9969.tar.zst
nixpkgs-162b8fba1278900be3ff940a47009e67c00c9969.zip
testing-python.nix: document runTests pos argument
Diffstat (limited to 'nixos/lib/testing-python.nix')
-rw-r--r--nixos/lib/testing-python.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/nixos/lib/testing-python.nix b/nixos/lib/testing-python.nix
index cbe90ff4cbf..6497b897eaf 100644
--- a/nixos/lib/testing-python.nix
+++ b/nixos/lib/testing-python.nix
@@ -54,8 +54,13 @@ rec {
     };
 
   # Run an automated test suite in the given virtual network.
-  # `driver' is the script that runs the network.
-  runTests = { driver, pos }:
+  runTests = {
+    # the script that runs the network
+    driver,
+    # a source position in the format of builtins.unsafeGetAttrPos
+    # for meta.position
+    pos,
+  }:
     stdenv.mkDerivation {
       name = "vm-test-run-${driver.testName}";