mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-23 14:56:43 +03:00
test: add option extraTestScript
This allows extending tests.py.
This commit is contained in:
parent
2cf12d8765
commit
e61c743644
@ -42,6 +42,7 @@ name: testConfig:
|
||||
builtins.concatStringsSep "\n\n" [
|
||||
initData
|
||||
(builtins.readFile ./../tests.py)
|
||||
cfg.test.extraTestScript
|
||||
# Don't run tests in interactive mode.
|
||||
# is_interactive is set in ../run-tests.sh
|
||||
''
|
||||
|
@ -19,7 +19,11 @@ with lib;
|
||||
dictionary variable 'test_data'. The data is exported via JSON.
|
||||
'';
|
||||
};
|
||||
|
||||
extraTestScript = mkOption {
|
||||
type = types.lines;
|
||||
default = "";
|
||||
description = "Extra lines added to the Python test script.";
|
||||
};
|
||||
container = {
|
||||
# Forwarded to extra-container. For descriptions, see
|
||||
# https://github.com/erikarvstedt/extra-container/blob/master/eval-config.nix
|
||||
|
Loading…
Reference in New Issue
Block a user