due to new upstart version, vm tests didn't work anymore
svn path=/nixos/trunk/; revision=18840
This commit is contained in:
parent
12401536fc
commit
ed6d8c6881
|
@ -180,7 +180,7 @@ sub waitForJob {
|
|||
my ($self, $jobName) = @_;
|
||||
while (1) {
|
||||
my ($status, $out) = $self->execute("initctl status $jobName");
|
||||
return if $out =~ /\(start\)\s+running/;
|
||||
return if $out =~ /start\/running/;
|
||||
sleep 1;
|
||||
# !!! need a timeout
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ sub stopJob {
|
|||
$self->execute("initctl stop $jobName");
|
||||
while (1) {
|
||||
my ($status, $out) = $self->execute("initctl status $jobName");
|
||||
return if $out =~ /\(stop\)\s+waiting/;
|
||||
return if $out =~ /stop\/waiting/;
|
||||
sleep 1;
|
||||
# !!! need a timeout
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@ with pkgs.lib;
|
|||
config = {
|
||||
|
||||
jobs.backdoor =
|
||||
{ startOn = "network-interfaces";
|
||||
{ startOn = "started network-interfaces";
|
||||
|
||||
preStart =
|
||||
''
|
||||
|
|
Loading…
Reference in New Issue