nixos-rebuild-ng: increase timeout for REPL tests
This commit is contained in:
parent
f2df828138
commit
91fd664d85
@ -13,7 +13,7 @@ let
|
|||||||
escapeExpect = lib.strings.escapeNixString;
|
escapeExpect = lib.strings.escapeNixString;
|
||||||
|
|
||||||
expectSetup = ''
|
expectSetup = ''
|
||||||
set timeout 180
|
set timeout 300
|
||||||
proc expect_simple { pattern } {
|
proc expect_simple { pattern } {
|
||||||
puts "Expecting: $pattern"
|
puts "Expecting: $pattern"
|
||||||
expect {
|
expect {
|
||||||
@ -76,7 +76,7 @@ runCommand "test-nixos-rebuild-repl"
|
|||||||
|
|
||||||
expect ${writeText "test-nixos-rebuild-repl-expect" ''
|
expect ${writeText "test-nixos-rebuild-repl-expect" ''
|
||||||
${expectSetup}
|
${expectSetup}
|
||||||
spawn nixos-rebuild repl --fast
|
spawn nixos-rebuild repl --no-reexec
|
||||||
|
|
||||||
expect "nix-repl> "
|
expect "nix-repl> "
|
||||||
|
|
||||||
@ -116,7 +116,7 @@ runCommand "test-nixos-rebuild-repl"
|
|||||||
|
|
||||||
expect ${writeText "test-nixos-rebuild-repl-absolute-path-expect" ''
|
expect ${writeText "test-nixos-rebuild-repl-absolute-path-expect" ''
|
||||||
${expectSetup}
|
${expectSetup}
|
||||||
spawn sh -c "nixos-rebuild repl --fast --flake path:\$HOME#testconf"
|
spawn sh -c "nixos-rebuild repl --no-reexec --flake path:\$HOME#testconf"
|
||||||
|
|
||||||
expect_simple "nix-repl>"
|
expect_simple "nix-repl>"
|
||||||
|
|
||||||
@ -146,7 +146,7 @@ runCommand "test-nixos-rebuild-repl"
|
|||||||
pushd "$HOME"
|
pushd "$HOME"
|
||||||
expect ${writeText "test-nixos-rebuild-repl-relative-path-expect" ''
|
expect ${writeText "test-nixos-rebuild-repl-relative-path-expect" ''
|
||||||
${expectSetup}
|
${expectSetup}
|
||||||
spawn sh -c "nixos-rebuild repl --fast --flake .#testconf"
|
spawn sh -c "nixos-rebuild repl --no-reexec --flake .#testconf"
|
||||||
|
|
||||||
expect_simple "nix-repl>"
|
expect_simple "nix-repl>"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user