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:
Evgeny Vereshchagin 2020-07-10 00:18:21 +03:00 committed by GitHub
parent 2816e8729c
commit c22a5b6db9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 2 deletions

View File

@ -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: