зеркало из https://github.com/microsoft/lisa.git
wget: remove log before throwing exception
This commit is contained in:
Родитель
5c8d0258a6
Коммит
691cf76e69
|
@ -78,6 +78,7 @@ class Wget(Tool):
|
|||
if matched_result:
|
||||
download_file_path = matched_result.group("path")
|
||||
else:
|
||||
self.node.tools[Rm].remove_file(log_file, sudo=sudo)
|
||||
raise LisaException(
|
||||
f"cannot find file path in stdout of '{command}', it may be caused "
|
||||
" due to failed download or pattern mismatch."
|
||||
|
|
Загрузка…
Ссылка в новой задаче