How to use init_hugepages method in lisa

Best Python code snippet using lisa_python

py_spdk.py

Source:py_spdk.py Github

copy

Full Screen

...12 self.pname = pname1314 def start_server(self, spdk_dir, server_name):15 if not self.is_alive():16 self.init_hugepages(spdk_dir)17 server_dir = os.path.join(spdk_dir, 'app/')18 file_dir = self._search_file(server_dir, server_name)19 print file_dir20 os.chdir(file_dir)21 p = subprocess.Popen(22 'sudo ./%s' % server_name,23 shell=True, stdout=subprocess.PIPE,24 stderr=subprocess.PIPE)25 out, err = p.communicate()26 return out2728 def init_hugepages(self, spdk_dir):29 huge_dir = os.path.join(spdk_dir, 'scripts/')30 file_dir = self._search_file(huge_dir, 'setup.sh')31 print file_dir32 os.chdir(file_dir)33 p = subprocess.Popen(34 'sudo ./setup.sh',35 shell=True, stdout=subprocess.PIPE,36 stderr=subprocess.PIPE)37 out, err = p.communicate()38 return out3940 @staticmethod41 def _search_file(spdk_dir, file_name):42 for dirpath, dirnames, filenames in os.walk(spdk_dir): ...

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:

YouTube

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

Run lisa 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?

Helpful

NotHelpful