From 581a4722665b30793c7ed50a53b65d9bebf598f6 Mon Sep 17 00:00:00 2001 From: Lili Deng Date: Sat, 17 Sep 2022 17:07:37 +0800 Subject: [PATCH] add apt update for debian after adding repo --- lisa/operating_system.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lisa/operating_system.py b/lisa/operating_system.py index 31457ff6c..259c1506f 100644 --- a/lisa/operating_system.py +++ b/lisa/operating_system.py @@ -763,6 +763,10 @@ class Debian(Linux): expected_exit_code_failure_message="fail to add repository", ) + # apt update will not be triggered on Debian during add repo + if type(self._node.os) == Debian: + self._node.execute("apt-get update", sudo=True) + @retry(tries=10, delay=5) def _initialize_package_installation(self) -> None: # wait running system package process.