Author: ludo
Date: Sun Oct 10 22:37:45 2010
New Revision: 24210
URL: https://svn.nixos.org/websvn/nix/?rev=24210&sc=1
Log:
test-driver: Add `startJob' method.
Modified:
nixos/trunk/lib/test-driver/Machine.pm
Modified: nixos/trunk/lib/test-driver/Machine.pm
==============================================================================
--- nixos/trunk/lib/test-driver/Machine.pm Sun Oct 10 22:37:41 2010
(r24209)
+++ nixos/trunk/lib/test-driver/Machine.pm Sun Oct 10 22:37:45 2010
(r24210)
@@ -330,6 +330,12 @@
}
}
+sub startJob {
+ my ($self, $jobName) = @_;
+ $self->execute("initctl start $jobName");
+ my ($status, $out) = $self->execute("initctl status $jobName");
+ die "failed to start $jobName" unless $out =~ /start\/running/;
+}
sub stopJob {
my ($self, $jobName) = @_;
_______________________________________________
nix-commits mailing list
[email protected]
http://mail.cs.uu.nl/mailman/listinfo/nix-commits