Merge "Drop the unnecessary sudo from probe tests"

This commit is contained in:
Zuul 2021-05-11 22:26:10 +00:00 committed by Gerrit Code Review
commit 25f3fc7a20
1 changed files with 3 additions and 5 deletions

View File

@ -16,7 +16,7 @@
import os
from errno import EEXIST
from shutil import copyfile
from shutil import copyfile, move
from tempfile import mkstemp
from time import time
from unittest import main
@ -68,10 +68,8 @@ class TestPartPowerIncrease(ProbeTest):
copyfile(self.builder_file, backup_name)
# Restore original ring
os.system('sudo mv %s %s' % (
self.ring_file_backup, self.ring_file))
os.system('sudo mv %s %s' % (
self.builder_file_backup, self.builder_file))
move(self.ring_file_backup, self.ring_file)
move(self.builder_file_backup, self.builder_file)
def _find_objs_ondisk(self, container, obj):
locations = []