diff options
author | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-26 13:04:55 +0300 |
---|---|---|
committer | arcadia-devtools <arcadia-devtools@yandex-team.ru> | 2022-03-26 13:04:55 +0300 |
commit | 78caba673687bcd49fbf2ce6d097d318282ff002 (patch) | |
tree | 7e87d11347d92113f9e39f03db2e61ce7943b5aa /library/python/testing | |
parent | d2fb88bc290f27a26b3ed7eb1932c5fb94cfd813 (diff) | |
download | ydb-78caba673687bcd49fbf2ce6d097d318282ff002.tar.gz |
intermediate changes
ref:110136b448f725022fe4a99944539b99fd3a0ebf
Diffstat (limited to 'library/python/testing')
-rw-r--r-- | library/python/testing/yatest_common/yatest/common/process.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/python/testing/yatest_common/yatest/common/process.py b/library/python/testing/yatest_common/yatest/common/process.py index 6dfab8f94df..b2f10f39457 100644 --- a/library/python/testing/yatest_common/yatest/common/process.py +++ b/library/python/testing/yatest_common/yatest/common/process.py @@ -514,7 +514,9 @@ def execute( executable = command[0] else: executable = command - if os.path.isabs(executable): + if not executable: + raise InvalidCommandError("Target program is invalid: {}".format(command)) + elif os.path.isabs(executable): if not os.path.isfile(executable) and not os.path.isfile(executable + ".exe"): exists = os.path.exists(executable) if exists: |