提交 adc4c5bc 编写于 作者: L Lukáš Doktor

loader: Improve message when file does not exists

Currently when the target file does not exists the FileLoader reports:
"Does not look like an INSTRUMENTED test, nor is it executable" which
can be a bit misleading. Let's change it to: "File not found
($locations)".
Signed-off-by: NLukáš Doktor <ldoktor@redhat.com>
上级 677d8f63
......@@ -809,6 +809,8 @@ class FileLoader(TestLoader):
return self._make_avocado_tests(test_path, make_broken,
subtests_filter,
test_name)
return make_broken(NotATest, test_name, "File not found "
"('%s'; '%s')" % (test_name, test_path))
return make_broken(NotATest, test_name, self.__not_test_str)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册