self.testname = self.__class__.__name__
self.builddir = self.outputdir and os.path.join(self.outputdir, self.testname)
self.emulator = None
+ self.config += '\nBR2_DL_DIR="{}"\n'.format(self.downloaddir)
self.config += "\nBR2_JLEVEL={}\n".format(self.jlevel)
def show_msg(self, msg):
"> end defconfig\n")
self.logfile.flush()
+ env = {"PATH": os.environ["PATH"]}
cmd = ["make",
"O={}".format(self.builddir),
"olddefconfig"]
- ret = subprocess.call(cmd, stdout=self.logfile, stderr=self.logfile)
+ ret = subprocess.call(cmd, stdout=self.logfile, stderr=self.logfile,
+ env=env)
if ret != 0:
raise SystemError("Cannot olddefconfig")
cmd = ["make", "-C", self.builddir]
- ret = subprocess.call(cmd, stdout=self.logfile, stderr=self.logfile)
+ ret = subprocess.call(cmd, stdout=self.logfile, stderr=self.logfile,
+ env=env)
if ret != 0:
raise SystemError("Build failed")
return 1
BRTest.downloaddir = os.path.abspath(args.download)
- os.putenv("BR2_DL_DIR", BRTest.downloaddir)
if args.output is None:
print "Missing output directory, please use -o/--output"