summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorAndreas Rammhold <andreas@rammhold.de>2021-05-03 22:48:10 +0200
committerGitHub <noreply@github.com>2021-05-03 22:48:10 +0200
commit7cb76200088f45cd24a9aa67fd2f9657943d78a4 (patch)
tree53dc637417975f52944c5a8c688b68d203083094 /nixos
parent29efb312788824d266708745a5e15f7e8e0bb956 (diff)
parent162b8fba1278900be3ff940a47009e67c00c9969 (diff)
downloadnixpkgs-7cb76200088f45cd24a9aa67fd2f9657943d78a4.tar
nixpkgs-7cb76200088f45cd24a9aa67fd2f9657943d78a4.tar.gz
nixpkgs-7cb76200088f45cd24a9aa67fd2f9657943d78a4.tar.bz2
nixpkgs-7cb76200088f45cd24a9aa67fd2f9657943d78a4.tar.lz
nixpkgs-7cb76200088f45cd24a9aa67fd2f9657943d78a4.tar.xz
nixpkgs-7cb76200088f45cd24a9aa67fd2f9657943d78a4.tar.zst
nixpkgs-7cb76200088f45cd24a9aa67fd2f9657943d78a4.zip
Merge pull request #121587 from hercules-ci/nixos-test-inline-doc
testing-python.nix: document runTests pos argument
Diffstat (limited to 'nixos')
-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}";