-
Notifications
You must be signed in to change notification settings - Fork 225
Fix test cases for Azure Linux #4152
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
c158b64 to
0e800cd
Compare
0e800cd to
3591b30
Compare
| modprobe_reloader_script: CustomScript = self.node.tools[modprobe_reloader_tool] | ||
| modprobe_reloader_script.run(parameters, sudo=True, shell=True, nohup=True) | ||
|
|
||
| original_user = self.node.connection_info.get('username', None) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use node.tools[Whoami].get_username()
| self.node.execute(f"mkdir -p {self._work}", sudo=True) | ||
| self.node.execute(f"chmod 777 {self._work}", sudo=True) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please use the tools here
| self.node.execute( | ||
| f"chown {original_user}:{original_user} {loop_process_pid_file_name}", | ||
| sudo=True, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
use tool here as well
Fixes verify_reload_hyperv_modules, stress_tlb_basic, stress_tlb_stressng test cases