mirror of https://github.com/google/oss-fuzz.git
utils: ignore subprocess-run-check (#4102)
"check" is omitted intentionally there. A follow-up to https://github.com/google/oss-fuzz/pull/4101
This commit is contained in:
parent
2816e8729c
commit
c22a5b6db9
|
@ -93,8 +93,9 @@ def get_container_name():
|
|||
Returns:
|
||||
Container name or None if not in a container.
|
||||
"""
|
||||
result = subprocess.run(['systemd-detect-virt', '-c'],
|
||||
stdout=subprocess.PIPE).stdout
|
||||
result = subprocess.run( # pylint: disable=subprocess-run-check
|
||||
['systemd-detect-virt', '-c'],
|
||||
stdout=subprocess.PIPE).stdout
|
||||
if b'docker' not in result:
|
||||
return None
|
||||
with open('/etc/hostname') as file_handle:
|
||||
|
|
Loading…
Reference in New Issue