use strict;
use warnings;
+use IO::File;
+
use Osstest;
use Osstest::TestSupport;
use Fcntl qw(:seek);
use POSIX;
+use IO::File;
BEGIN {
use Exporter ();
use warnings;
use Osstest;
+use IO::File;
BEGIN {
use Exporter ();
use Osstest;
use Osstest::Logtailer;
use File::Copy;
+use File::Basename;
+use IO::Handle;
BEGIN {
use Exporter ();
print DEBUG "$dbg $khash ($kdb) FROM-RES-PROP $val\n";
} else {
$val= $hid->{"Default$khash"};
- print DEBUG "$dbg $khash ($kdb) FROM-DEFAULT $val\n";
+ print DEBUG "$dbg $khash ($kdb) FROM-DEFAULT ".
+ (defined $val ? $val : '<undef>')."\n";
}
$candrow->{$khash}= $val;
}
my $linux_url_envvar= 'XEN_LINUX_GIT_URL';
my $linux_rev_envvar= 'XEN_LINUX_GITREV';
- if (length $r{tree_linux} && $r{tree_linux} =~ m/\.hg$/) {
+ if (defined $r{tree_linux} && $r{tree_linux} =~ m/\.hg$/) {
$linux_url_envvar= 'XEN_LINUX_HGREPO';
$linux_rev_envvar= 'XEN_LINUX_HGREV';
}
target_editfile_root($ho, "/etc/xen/xend-config.sxp",
"xend-config.sxp", sub {
my (@domains) = (qw(localhost localhost.localdomain),
- ".".$c{Domain}, ".".$c{TestHostDomain});
+ ".".$c{DnsDomain}, ".".$c{TestHostDomain});
logm("relocation domains: @domains");
foreach (@domains) {
s/\./\\$&/g;