The doubled $s here are simply a mistake. The result is to make this
test ineffective, since `$$file' means `the value of the variable
whose name is in the variable $file', which here will never exist.
This produces a `Use of uninitialized value' warning and substitutes
the empty string, so overall we test the existence of the directory.
The missing check is not of much consequence since this check is not
really expected ever to fail, and if it does, some actual test
execution would fail due to the missing file.
So overall I think the only change is to log output.
Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
CC: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
sub livepatch_check () {
foreach my $file (@livepatch_files) {
- if (!target_file_exists($ho, "/usr/lib/debug/xen-livepatch/$$file")) {
+ if (!target_file_exists($ho, "/usr/lib/debug/xen-livepatch/$file")) {
die "$file is missing!\n";
}
}