notifications.t: use system() with lists

[?]
Dec 15, 2021, 1:48 AM
POYC23SRNAKI6RIVIHUENNWAXMMVSJJCV67U67L2GWW2RDCFPMHAC

Dependencies

  • [2] 3DNFPPSL notifications.t: move to makeAndEvaluateJobset
  • [3] HWGFAF2B queue runner: test notifications

Change contents

  • replacement in t/queue-runner/notifications.t at line 40
    [2.104][2.104:262](),[2.262][3.1834:1963](),[3.1834][3.1834:1963]()
    is(system("nix-build '" . $ctx->jobsdir . "/notifications.nix' -A canbesubstituted --out-link '${outlink}'"), 0, "Building notifications.nix succeeded");
    is(system("nix copy --to 'file://${binarycachedir}' '${outlink}'"), 0, "Copying the closure to the binary cache succeeded");
    [2.104]
    [3.1963]
    is(system('nix-build', $ctx->jobsdir . '/notifications.nix', '-A', 'canbesubstituted', '--out-link', $outlink), 0, "Building notifications.nix succeeded");
    is(system('nix', 'copy', '--to', "file://${binarycachedir}", $outlink), 0, "Copying the closure to the binary cache succeeded");
  • replacement in t/queue-runner/notifications.t at line 46
    [3.2128][3.2128:2309]()
    is(system("nix log '$outpath'"), 0, "Reading the output's log succeeds");
    is(system("nix-store --delete '$outpath'"), 0, "Deleting the notifications.nix output succeeded");
    [3.2128]
    [3.2309]
    is(system('nix', 'log', $outpath), 0, "Reading the output's log succeeds");
    is(system('nix-store', '--delete', $outpath), 0, "Deleting the notifications.nix output succeeded");
  • replacement in t/queue-runner/notifications.t at line 54
    [2.325][2.325:496]()
    is(system("nix-build '" . $ctx->jobsdir . "/notifications.nix' -A canbesubstituted --max-jobs 0 --out-link '${outlink}'"), 0, "Building notifications.nix succeeded");
    [2.325]
    [3.2756]
    is(system('nix-build', $ctx->jobsdir . '/notifications.nix', '-A', 'canbesubstituted', '--max-jobs', '0', '--out-link', $outlink), 0, "Building notifications.nix succeeded");
  • replacement in t/queue-runner/notifications.t at line 58
    [3.2870][3.2870:2955]()
    isnt(system("nix log '$outpath'"), 0, "Reading the deleted output's log fails");
    [3.2870]
    [3.2955]
    isnt(system('nix', 'log', $outpath), 0, "Reading the deleted output's log fails");
  • replacement in t/queue-runner/notifications.t at line 63
    [3.3127][3.3127:3218]()
    is(system("nix-store --delete '$outpath'"), 0, "Deleting the basic output succeeded");
    [3.3127]
    [3.3218]
    is(system('nix-store', '--delete', $outpath), 0, "Deleting the notifications.nix output succeeded");