diff options
author | Andreas Rammhold <andreas@rammhold.de> | 2021-05-03 22:48:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-03 22:48:10 +0200 |
commit | 7cb76200088f45cd24a9aa67fd2f9657943d78a4 (patch) | |
tree | 53dc637417975f52944c5a8c688b68d203083094 /nixos | |
parent | 29efb312788824d266708745a5e15f7e8e0bb956 (diff) | |
parent | 162b8fba1278900be3ff940a47009e67c00c9969 (diff) | |
download | nixpkgs-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.nix | 9 |
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}"; |