Reformat other subprocess.run commands to highlight command
Signed-off-by: Paul Wayper <paulway@redhat.com>
This commit is contained in:
parent
6d0054826b
commit
6ee1bb93dd
1 changed files with 9 additions and 8 deletions
17
test/test.py
17
test/test.py
|
|
@ -174,10 +174,10 @@ class TestBase(unittest.TestCase):
|
|||
"""
|
||||
|
||||
try:
|
||||
r = subprocess.run(["rpm-ostree", "--version"],
|
||||
encoding="utf-8",
|
||||
stdout=subprocess.PIPE,
|
||||
check=False)
|
||||
r = subprocess.run(
|
||||
["rpm-ostree", "--version"],
|
||||
encoding="utf-8", stdout=subprocess.PIPE, check=False
|
||||
)
|
||||
except FileNotFoundError:
|
||||
return False
|
||||
|
||||
|
|
@ -235,10 +235,11 @@ class OSBuild(contextlib.AbstractContextManager):
|
|||
cache = tempfile.TemporaryDirectory(dir="/var/tmp")
|
||||
self._cachedir = self._exitstack.enter_context(cache)
|
||||
if self._cache_from is not None:
|
||||
subprocess.run(["cp", "--reflink=auto", "-a",
|
||||
os.path.join(self._cache_from, "."),
|
||||
self._cachedir],
|
||||
check=True)
|
||||
subprocess.run([
|
||||
"cp", "--reflink=auto", "-a",
|
||||
os.path.join(self._cache_from, "."),
|
||||
self._cachedir
|
||||
], check=True)
|
||||
|
||||
# Keep our ExitStack for `__exit__()`.
|
||||
self._exitstack = self._exitstack.pop_all()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue