diff options
author | David Arnold <dar@xoe.solutions> | 2021-06-06 11:36:07 -0500 |
---|---|---|
committer | David Arnold <dar@xoe.solutions> | 2021-06-13 15:47:51 -0500 |
commit | 3884ff70badca0c93c717e6190946a9a2846e948 (patch) | |
tree | 8f9439bb6f3ef5f69d3c21dfdcd6bf537001c292 /nixos/lib/test-driver | |
parent | ffb7cfcfad15e3bff9d05336767e59ee6ee24cb6 (diff) | |
download | nixlib-3884ff70badca0c93c717e6190946a9a2846e948.tar nixlib-3884ff70badca0c93c717e6190946a9a2846e948.tar.gz nixlib-3884ff70badca0c93c717e6190946a9a2846e948.tar.bz2 nixlib-3884ff70badca0c93c717e6190946a9a2846e948.tar.lz nixlib-3884ff70badca0c93c717e6190946a9a2846e948.tar.xz nixlib-3884ff70badca0c93c717e6190946a9a2846e948.tar.zst nixlib-3884ff70badca0c93c717e6190946a9a2846e948.zip |
nixos/tests/test-driver: cleanup nix expression
Less nesting, where that improves readability. More nesteing, where that improves readability, but most importantly: Expose individual functions separately so that they can be more easily built directly, eg.: `nix build --impure --expr '(import ./testing-python.nix {system = builtins.currentSystem;}).mkTestDriver'`
Diffstat (limited to 'nixos/lib/test-driver')
-rw-r--r-- | nixos/lib/test-driver/test-driver.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/lib/test-driver/test-driver.py b/nixos/lib/test-driver/test-driver.py index 9c97ce383437..5be741395a08 100644 --- a/nixos/lib/test-driver/test-driver.py +++ b/nixos/lib/test-driver/test-driver.py @@ -973,7 +973,7 @@ def subtest(name: str) -> Iterator[None]: if __name__ == "__main__": - arg_parser = argparse.ArgumentParser() + arg_parser = argparse.ArgumentParser(prog="nixos-test-driver") arg_parser.add_argument( "-K", "--keep-vm-state", |