[OE-core] [PATCH v2 3/3] selftest/wic: Add tests for --exclude-dir option.

Kristian Amlie kristian.amlie at mender.io
Mon Dec 19 09:09:22 UTC 2016


>> +    def test_exclude_path(self):
>> +        """Test --exclude-path wks option."""
>> +
>> +        # For using 'e2ls'.
>> +        old_path = os.environ['PATH']
>> +        os.environ['PATH'] = get_bb_var('PATH', 'core-image-minimal')
>> +
>> +        wks_file = 'temp.wks'
>> +        ks = open(wks_file, 'w')
> 
> I'd use more pythonic 'with open(wks_file, 'w') as wks:' here.

Done for all three blocks!

-- 
Kristian



More information about the Openembedded-core mailing list