summary refs log tree commit diff
path: root/lib/test-driver/Machine.pm
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2011-02-16 10:07:28 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2011-02-16 10:07:28 +0000
commit32aa967ee1eada7ea2e67087e0a0df285093c133 (patch)
treef651d8c142f36e51595bb342f65f5518755ad2c8 /lib/test-driver/Machine.pm
parent49213aa80a47cfad0bddfc57c2b00e7e655e91fc (diff)
downloadnixpkgs-32aa967ee1eada7ea2e67087e0a0df285093c133.tar
nixpkgs-32aa967ee1eada7ea2e67087e0a0df285093c133.tar.gz
nixpkgs-32aa967ee1eada7ea2e67087e0a0df285093c133.tar.bz2
nixpkgs-32aa967ee1eada7ea2e67087e0a0df285093c133.tar.lz
nixpkgs-32aa967ee1eada7ea2e67087e0a0df285093c133.tar.xz
nixpkgs-32aa967ee1eada7ea2e67087e0a0df285093c133.tar.zst
nixpkgs-32aa967ee1eada7ea2e67087e0a0df285093c133.zip
* Only add a VDE NIC if there is a webserver.
svn path=/nixos/trunk/; revision=25986
Diffstat (limited to 'lib/test-driver/Machine.pm')
-rw-r--r--lib/test-driver/Machine.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/test-driver/Machine.pm b/lib/test-driver/Machine.pm
index 7b48f26fb82..49e5fd767ee 100644
--- a/lib/test-driver/Machine.pm
+++ b/lib/test-driver/Machine.pm
@@ -20,7 +20,7 @@ sub new {
     
     my $name = $args->{name};
     if (!$name) {
-        $startCommand =~ /run-(.*)-vm$/;
+        $startCommand =~ /run-(.*)-vm$/ if defined $startCommand;
         $name = $1 || "machine";
     }