(perl) machines file: support machine lines with multiple spaces between fields

[?]
Oct 25, 2021, 1:24 AM
K4UTDMRBZUF77OPXYIQ74SQUUHXUCB3HMB5CVASMN5MFCKAA67HAC

Dependencies

  • [2] QTZ6UUOM Hydra::Helper::Nix::getMachines: add a test
  • [3] L6PVAEWJ perlcritic: don't open files as bare words
  • [4] 6MNLYIXO perlcritic: explicitly assign the result of readdir/file reads
  • [5] HTL6HIBM machine-status: Read /etc/nix.machines instead of using the BuildMachines table
  • [*] 2GK5DOU7 * Downloading closures.

Change contents

  • replacement in src/lib/Hydra/Helper/Nix.pm at line 350
    [2.97][3.38:82](),[3.741][3.38:82]()
    my @tokens = split /\s/, $line;
    [2.97]
    [2.98]
    my @tokens = split /\s+/, $line;
  • edit in t/Helper/Nix.t at line 27
    [2.903]
    [2.903]
    root@lotsofspace i686-linux,x86_64-linux /var/sshkey 1 1 kvm,nixos-test benchmark
  • edit in t/Helper/Nix.t at line 57
    [2.1755]
    [2.1755]
    'root@lotsofspace' => {
    'systemTypes' => [ "i686-linux", "x86_64-linux" ],
    'sshKeys' => '/var/sshkey',
    'maxJobs' => 1,
    'speedFactor' => 1,
    'supportedFeatures' => [ "kvm", "nixos-test", "benchmark" ],
    'mandatoryFeatures' => [ "benchmark" ],
    },