Merge "Drop the unnecessary sudo from probe tests"
This commit is contained in:
commit
25f3fc7a20
@ -16,7 +16,7 @@
|
|||||||
import os
|
import os
|
||||||
|
|
||||||
from errno import EEXIST
|
from errno import EEXIST
|
||||||
from shutil import copyfile
|
from shutil import copyfile, move
|
||||||
from tempfile import mkstemp
|
from tempfile import mkstemp
|
||||||
from time import time
|
from time import time
|
||||||
from unittest import main
|
from unittest import main
|
||||||
@ -68,10 +68,8 @@ class TestPartPowerIncrease(ProbeTest):
|
|||||||
copyfile(self.builder_file, backup_name)
|
copyfile(self.builder_file, backup_name)
|
||||||
|
|
||||||
# Restore original ring
|
# Restore original ring
|
||||||
os.system('sudo mv %s %s' % (
|
move(self.ring_file_backup, self.ring_file)
|
||||||
self.ring_file_backup, self.ring_file))
|
move(self.builder_file_backup, self.builder_file)
|
||||||
os.system('sudo mv %s %s' % (
|
|
||||||
self.builder_file_backup, self.builder_file))
|
|
||||||
|
|
||||||
def _find_objs_ondisk(self, container, obj):
|
def _find_objs_ondisk(self, container, obj):
|
||||||
locations = []
|
locations = []
|
||||||
|
Loading…
Reference in New Issue
Block a user