diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index deb2333e05..6bc4b60519 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py | |||
| @@ -180,8 +180,10 @@ class Wic(oeSelfTest): | |||
| 180 | path = os.path.join(imgdatadir, basename) + '.env' | 180 | path = os.path.join(imgdatadir, basename) + '.env' |
| 181 | self.assertTrue(os.path.isfile(path)) | 181 | self.assertTrue(os.path.isfile(path)) |
| 182 | 182 | ||
| 183 | wicvars = get_bb_var('WICVARS', image).split() | 183 | wicvars = set(get_bb_var('WICVARS', image).split()) |
| 184 | wicvars.remove('IMAGE_BOOT_FILES') # this variable is optional | 184 | # filter out optional variables |
| 185 | wicvars = wicvars.difference(('HDDDIR', 'IMAGE_BOOT_FILES', | ||
| 186 | 'INITRD', 'ISODIR')) | ||
| 185 | with open(path) as envfile: | 187 | with open(path) as envfile: |
| 186 | content = dict(line.split("=", 1) for line in envfile) | 188 | content = dict(line.split("=", 1) for line in envfile) |
| 187 | # test if variables used by wic present in the .env file | 189 | # test if variables used by wic present in the .env file |
