Change-Id: I085820d9f9c0e04b501769907c943fe999e0a503
Signed-off-by: Hasan Wan <hasan.wan@intel.com>
import os
import shutil
from hashlib import sha256
+from subprocess import check_output, CalledProcessError
from common.builddata import BuildData, BuildDataError
# Create or update build.xml
outf = os.path.join(self.outdir, 'build.xml')
if os.path.exists(outf):
- bdata.load(open(outf))
+ bdata.load(open(outf).read())
bdata.add_target(target)
bdata.save(outf)