mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 13:41:26 +00:00
419bc0a4cd
In87a19e9048
I merged staging-next into master using the GitHub gui as intended. Inac241fb7a5
I merged master into staging-next for the next staging cycle, however, I accidentally pushed it to master. Thinking this may cause trouble, I reverted it in0be87c7979
. This was however wrong, as it "removed" master. This reverts commit0be87c7979
.
27 lines
762 B
Nix
27 lines
762 B
Nix
import ../make-test-python.nix {
|
|
machine = { pkgs, ... }: {
|
|
imports = [ ../../modules/profiles/minimal.nix ];
|
|
environment.systemPackages = [ pkgs.lorri ];
|
|
};
|
|
|
|
testScript = ''
|
|
# Copy files over
|
|
machine.succeed(
|
|
"cp '${./fake-shell.nix}' shell.nix"
|
|
)
|
|
machine.succeed(
|
|
"cp '${./builder.sh}' builder.sh"
|
|
)
|
|
|
|
# Start the daemon and wait until it is ready
|
|
machine.execute("lorri daemon > lorri.stdout 2> lorri.stderr &")
|
|
machine.wait_until_succeeds("grep --fixed-strings 'ready' lorri.stdout")
|
|
|
|
# Ping the daemon
|
|
machine.succeed("lorri internal__ping shell.nix")
|
|
|
|
# Wait for the daemon to finish the build
|
|
machine.wait_until_succeeds("grep --fixed-strings 'Completed' lorri.stdout")
|
|
'';
|
|
}
|