зеркало из https://github.com/microsoft/lisa.git
when hit not have enough permission to run dmesg, the result.stderr is empty, but result.exit_code is 1. (#1135)
This commit is contained in:
Родитель
e9b140e4af
Коммит
297c60cda2
|
@ -62,7 +62,7 @@ class Dmesg(Tool):
|
|||
# sometime it need sudo, we can retry
|
||||
# so no_error_log for first time
|
||||
result = self.run(no_error_log=True)
|
||||
if result.stderr:
|
||||
if result.exit_code != 0:
|
||||
# may need sudo
|
||||
result = self.node.execute("sudo dmesg")
|
||||
self._cached_result = result
|
||||
|
|
Загрузка…
Ссылка в новой задаче