nixos/tests/atd : remove test of batch command

"batch" executes jobs based on system load.
test was not deterministic.

(cherry picked from commit b08560fb0abcca6f2c704d1d0664e3cd17580172)
release-18.03-flake
xeji 2018-03-21 00:58:41 +01:00 committed by Franz Pletz
parent b0f5bc0f4a
commit 255f999541
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
1 changed files with 0 additions and 6 deletions

View File

@ -17,20 +17,14 @@ import ./make-test.nix ({ pkgs, lib, ... }:
startAll;
$machine->fail("test -f ~root/at-1");
$machine->fail("test -f ~root/batch-1");
$machine->fail("test -f ~alice/at-1");
$machine->fail("test -f ~alice/batch-1");
$machine->succeed("echo 'touch ~root/at-1' | at now+1min");
$machine->succeed("echo 'touch ~root/batch-1' | batch");
$machine->succeed("su - alice -c \"echo 'touch at-1' | at now+1min\"");
$machine->succeed("su - alice -c \"echo 'touch batch-1' | batch\"");
$machine->succeed("sleep 1.5m");
$machine->succeed("test -f ~root/at-1");
$machine->succeed("test -f ~root/batch-1");
$machine->succeed("test -f ~alice/at-1");
$machine->succeed("test -f ~alice/batch-1");
'';
})