system-tests: Fix incorrect variable usage 24/208124/1
authorKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 18 Jun 2019 13:45:10 +0000 (15:45 +0200)
committerKarol Lewandowski <k.lewandowsk@samsung.com>
Tue, 18 Jun 2019 13:57:41 +0000 (15:57 +0200)
Change-Id: Ifafc9ff3c62f760b96188c4a51471a219e66cee0

tests/system/utils/minicore-utils.sh

index a677541..94fa8bf 100644 (file)
@@ -45,7 +45,7 @@ function check_file_not_exists {
 function check_zip_contains {
     zipfile=${1}
     pattern="$2"
-    if ! unzip -qql "$logfile" | grep -E "$pattern"; then
+    if ! unzip -qql "$zipfile" | grep -E "$pattern"; then
         exit_with_code "FAIL: zip file ${zipfile} does not contain ${pattern}" ${FAIL_CODE}
     fi
 }