From 78caba673687bcd49fbf2ce6d097d318282ff002 Mon Sep 17 00:00:00 2001 From: arcadia-devtools Date: Sat, 26 Mar 2022 13:04:55 +0300 Subject: intermediate changes ref:110136b448f725022fe4a99944539b99fd3a0ebf --- library/python/testing/yatest_common/yatest/common/process.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'library/python') 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: -- cgit v1.3