This was causing permissions issues when
running inside teuthology, as run_python
was using sudo and run_shell wasn't.
Would be nice to get rid of all the rootishness,
but for the moment just make it more uniform.
p.wait()
def run_shell(self, args, wait=True):
- args = ["cd", self.mountpoint, run.Raw('&&')] + args
+ args = ["cd", self.mountpoint, run.Raw('&&'), "sudo"] + args
return self.client_remote.run(args=args, stdout=StringIO(), wait=wait)
def open_no_data(self, basename):