summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/runtime/cases/apt.py
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@arm.com>2023-03-31 14:09:11 +0100
committerSteve Sakoman <steve@sakoman.com>2023-04-14 06:30:30 -1000
commit6310d789e6352461e58b311c7d07c2f7e836f9d0 (patch)
tree37d677f232633dfd4bff87b64b6c459607619bf0 /meta/lib/oeqa/runtime/cases/apt.py
parentd1064ebac92ef53087e0af30c43f682a31fb277b (diff)
downloadpoky-6310d789e6352461e58b311c7d07c2f7e836f9d0.tar.gz
oeqa/runtime: clean up deprecated backslash expansion
(From OE-Core rev: bed045277b835d38048021e7ad158f27dd3ae9bb) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 77085a05240c3f8226b9f2199c977f2555807789) Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/lib/oeqa/runtime/cases/apt.py')
-rw-r--r--meta/lib/oeqa/runtime/cases/apt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/runtime/cases/apt.py b/meta/lib/oeqa/runtime/cases/apt.py
index 4e09374add..8000645843 100644
--- a/meta/lib/oeqa/runtime/cases/apt.py
+++ b/meta/lib/oeqa/runtime/cases/apt.py
@@ -39,9 +39,9 @@ class AptRepoTest(AptTest):
39 self.target.run('cd %s; echo deb [ allow-insecure=yes ] %s/all ./ > sources.list' % (apt_get_sourceslist_dir, apt_get_source_server)) 39 self.target.run('cd %s; echo deb [ allow-insecure=yes ] %s/all ./ > sources.list' % (apt_get_sourceslist_dir, apt_get_source_server))
40 40
41 def setup_source_config_for_package_install_signed(self): 41 def setup_source_config_for_package_install_signed(self):
42 apt_get_source_server = 'http:\/\/%s:%s' % (self.tc.target.server_ip, self.repo_server.port) 42 apt_get_source_server = 'http://%s:%s' % (self.tc.target.server_ip, self.repo_server.port)
43 apt_get_sourceslist_dir = '/etc/apt/' 43 apt_get_sourceslist_dir = '/etc/apt/'
44 self.target.run("cd %s; cp sources.list sources.list.bak; sed -i 's/\[trusted=yes\] http:\/\/bogus_ip:bogus_port/%s/g' sources.list" % (apt_get_sourceslist_dir, apt_get_source_server)) 44 self.target.run("cd %s; cp sources.list sources.list.bak; sed -i 's|\[trusted=yes\] http://bogus_ip:bogus_port|%s|g' sources.list" % (apt_get_sourceslist_dir, apt_get_source_server))
45 45
46 def cleanup_source_config_for_package_install(self): 46 def cleanup_source_config_for_package_install(self):
47 apt_get_sourceslist_dir = '/etc/apt/' 47 apt_get_sourceslist_dir = '/etc/apt/'