about summary refs log tree commit diff
path: root/nixos/lib
diff options
context:
space:
mode:
authorRobert Hensing2021-05-03 13:33:41 +0200
committerRobert Hensing2021-05-03 13:33:41 +0200
commit162b8fba1278900be3ff940a47009e67c00c9969 (patch)
tree25df5b360b697a25e3fdbee1eebf947f551a8fe1 /nixos/lib
parent212c4e8f7327324debecb32dc773bbadda08c3d8 (diff)
testing-python.nix: document runTests pos argument
Diffstat (limited to 'nixos/lib')
-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 cbe90ff4cbfc..6497b897eafd 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}";