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:
|
try:
|
||||||
r = subprocess.run(["rpm-ostree", "--version"],
|
r = subprocess.run(
|
||||||
encoding="utf-8",
|
["rpm-ostree", "--version"],
|
||||||
stdout=subprocess.PIPE,
|
encoding="utf-8", stdout=subprocess.PIPE, check=False
|
||||||
check=False)
|
)
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
|
@ -235,10 +235,11 @@ class OSBuild(contextlib.AbstractContextManager):
|
||||||
cache = tempfile.TemporaryDirectory(dir="/var/tmp")
|
cache = tempfile.TemporaryDirectory(dir="/var/tmp")
|
||||||
self._cachedir = self._exitstack.enter_context(cache)
|
self._cachedir = self._exitstack.enter_context(cache)
|
||||||
if self._cache_from is not None:
|
if self._cache_from is not None:
|
||||||
subprocess.run(["cp", "--reflink=auto", "-a",
|
subprocess.run([
|
||||||
os.path.join(self._cache_from, "."),
|
"cp", "--reflink=auto", "-a",
|
||||||
self._cachedir],
|
os.path.join(self._cache_from, "."),
|
||||||
check=True)
|
self._cachedir
|
||||||
|
], check=True)
|
||||||
|
|
||||||
# Keep our ExitStack for `__exit__()`.
|
# Keep our ExitStack for `__exit__()`.
|
||||||
self._exitstack = self._exitstack.pop_all()
|
self._exitstack = self._exitstack.pop_all()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue