How to use set_build_target method in autotest

Best Python code snippet using autotest_python Github


Full Screen

...509 for line in open(self.build_dir + '/.config', 'r').readlines():510 if line.startswith('CONFIG_LOCALVERSION='):511 localversion = line.rstrip().split('"')[1]512 return "%s.%s.%s%s%s" %(version, patchlevel, sublevel, extraversion, localversion)513 def set_build_target(self, build_target):514 if build_target:515 self.build_target = build_target516 print 'BUILD TARGET: %s' % self.build_target517 def set_cross_cc(self, target_arch=None, cross_compile=None,518 build_target='bzImage'):519 """Set up to cross-compile.520 This is broken. We need to work out what the default521 compile produces, and if not, THEN set the cross522 compiler.523 """524 if self.target_arch:525 return526 # if someone has set build_target, don't clobber in set_cross_cc527 # run set_build_target before calling set_cross_cc528 if not self.build_target:529 self.set_build_target(build_target)530 # If no 'target_arch' given assume native compilation531 if target_arch is None:532 target_arch = utils.get_current_kernel_arch()533 if target_arch == 'ppc64':534 if self.build_target == 'bzImage':535 self.build_target = 'vmlinux'536 if not cross_compile:537 cross_compile = self.job.config_get('kernel.cross_cc')538 if cross_compile:539 os.environ['CROSS_COMPILE'] = cross_compile540 else:541 if os.environ.has_key('CROSS_COMPILE'):542 del os.environ['CROSS_COMPILE']543 return # HACK. Crap out for now....

Full Screen

Full Screen Github


Full Screen

...57 c = self.build_dir + '/buildconfigs/linux-defconfig_xen0_x86_32'58 self.log('using kernel config: %s ' % c)59 self.kjob.config(c)60 # Xen's kernel tree sucks; doesn't use bzImage, but vmlinux61 self.kjob.set_build_target('vmlinuz')62 # also, the vmlinuz is not out in arch/*/boot, ARGH! more hackery63 self.kjob.set_build_image(self.job.tmpdir + '/build/linux/vmlinuz')64 self.job.logging.restore()66 xen_version = self.get_xen_build_ver()67 self.log('BUILD VERSION: Xen: %s Kernel:%s' % \68 (xen_version, self.kjob.get_kernel_build_ver()))69 def build_timed(self, *args, **kwds):70 raise NotImplementedError('build_timed() not implemented')71 def install(self, tag='', prefix = '/', extraversion='autotest'):72 """make install in the kernel tree"""73 self.log('Installing ...')74 os.chdir(self.build_dir)75 if not os.path.isdir(prefix):...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:


You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run autotest automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?