nixos/tests/test-driver: cleanup "dead" code (USE_SERIAL)
At nixpkgs root: `rg redirectSerial ./` does not result in any other match nor does `rg USE_SERIAL ./` except for an unrelated match in: pkgs/tools/graphics/argyllcms/default.nix
This commit is contained in:
parent
3e0d605d56
commit
03bfa29891
2 changed files with 1 additions and 3 deletions
|
@ -907,7 +907,6 @@ class Machine:
|
||||||
def create_machine(args: Dict[str, Any]) -> Machine:
|
def create_machine(args: Dict[str, Any]) -> Machine:
|
||||||
global log
|
global log
|
||||||
args["log"] = log
|
args["log"] = log
|
||||||
args["redirectSerial"] = os.environ.get("USE_SERIAL", "0") == "1"
|
|
||||||
return Machine(args)
|
return Machine(args)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -196,8 +196,7 @@ rec {
|
||||||
--add-flags "''${vms[*]}" \
|
--add-flags "''${vms[*]}" \
|
||||||
${lib.optionalString enableOCR "--prefix PATH : '${ocrProg}/bin'"} \
|
${lib.optionalString enableOCR "--prefix PATH : '${ocrProg}/bin'"} \
|
||||||
--set tests 'start_all(); join_all();' \
|
--set tests 'start_all(); join_all();' \
|
||||||
--set VLANS '${toString vlans}' \
|
--set VLANS '${toString vlans}'
|
||||||
${lib.optionalString (builtins.length vms == 1) "--set USE_SERIAL 1"}
|
|
||||||
''); # "
|
''); # "
|
||||||
|
|
||||||
passMeta = drv: drv // lib.optionalAttrs (t ? meta) {
|
passMeta = drv: drv // lib.optionalAttrs (t ? meta) {
|
||||||
|
|
Loading…
Reference in a new issue