integration test driver: Auto-generate integration test driver's machine

method documentation of nixos docs from python doc strings
This commit is contained in:
Jacek Galowicz 2023-07-07 23:01:55 +02:00
parent c916884f86
commit 846ad444c7
6 changed files with 105 additions and 216 deletions

View file

@ -66,7 +66,7 @@ let
echo -n "$testScript" >> testScriptWithTypes
echo "Running type check (enable/disable: config.skipTypeCheck)"
echo "See https://nixos.org/manual/nixos/stable/#sec-test-options-reference"
echo "See https://nixos.org/manual/nixos/stable/#test-opt-skipTypeCheck"
mypy --no-implicit-optional \
--pretty \
@ -81,7 +81,7 @@ let
${testDriver}/bin/generate-driver-symbols
${lib.optionalString (!config.skipLint) ''
echo "Linting test script (enable/disable: config.skipLint)"
echo "See https://nixos.org/manual/nixos/stable/#sec-test-options-reference"
echo "See https://nixos.org/manual/nixos/stable/#test-opt-skipLint"
PYFLAKES_BUILTINS="$(
echo -n ${lib.escapeShellArg (lib.concatStringsSep "," pythonizedNames)},