From: Ian Jackson Date: Wed, 16 Jan 2019 11:32:06 +0000 (+0000) Subject: ts-livepatch-run: Fix erroneous $$ in double-check X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=11a1dc4792d4ace204c6359ff3b741fae98e0754;p=osstest.git ts-livepatch-run: Fix erroneous $$ in double-check 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 CC: Konrad Rzeszutek Wilk --- diff --git a/ts-livepatch-run b/ts-livepatch-run index f011e64..86a7979 100755 --- a/ts-livepatch-run +++ b/ts-livepatch-run @@ -161,7 +161,7 @@ sub livepatch_test () { 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"; } }