[Bps-public-commit] r17786 - TAP-Harness-Remote/lib/TAP/Harness

jesse at bestpractical.com jesse at bestpractical.com
Fri Jan 16 11:50:29 EST 2009


Author: jesse
Date: Fri Jan 16 11:50:28 2009
New Revision: 17786

Modified:
   TAP-Harness-Remote/lib/TAP/Harness/Remote.pm

Log:
* Deal with the case where the "env" key in the config file isn't defined.

Modified: TAP-Harness-Remote/lib/TAP/Harness/Remote.pm
==============================================================================
--- TAP-Harness-Remote/lib/TAP/Harness/Remote.pm	(original)
+++ TAP-Harness-Remote/lib/TAP/Harness/Remote.pm	Fri Jan 16 11:50:28 2009
@@ -284,7 +284,7 @@
 
     # Also, any other env vars
     $self->{env} = [];
-    for my $k (keys %{$self->remote_config("env")}) {
+    for my $k (keys %{$self->remote_config("env") || {}}) {
         my $val = $self->remote_config("env")->{$k};
         $val =~ s/'/'"'"'/g;
         push @{$self->{env}}, "$k='$val'";



More information about the Bps-public-commit mailing list