summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lava_dispatcher/actions/lava_test.py11
1 files changed, 3 insertions, 8 deletions
diff --git a/lava_dispatcher/actions/lava_test.py b/lava_dispatcher/actions/lava_test.py
index 41df3eb..e4405e4 100644
--- a/lava_dispatcher/actions/lava_test.py
+++ b/lava_dispatcher/actions/lava_test.py
@@ -190,7 +190,6 @@ class cmd_add_apt_repository(BaseAction):
"""
add apt repository to test image rootfs by chroot
arg could be 'deb uri distribution [component1] [component2][...]'
- or ppa:<ppa_name>
"""
parameters_schema = {
@@ -206,12 +205,8 @@ class cmd_add_apt_repository(BaseAction):
def run(self, arg):
with self.client.reliable_session() as session:
-
- # install add-apt-repository
- session.run('%s -y install python-software-properties' %
- self.client.aptget_cmd)
-
- # add ppa
+ # add apt repository
for repository in arg:
- session.run('add-apt-repository %s < /dev/null' % repository)
+ session.run("echo '%s' >> /etc/apt/sources.list.d/test_repo.list"
+ % repository)
session.run('%s update' % self.client.aptget_cmd)