summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/setup.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests/setup.py')
-rw-r--r--bitbake/lib/bb/tests/setup.py12
1 files changed, 7 insertions, 5 deletions
diff --git a/bitbake/lib/bb/tests/setup.py b/bitbake/lib/bb/tests/setup.py
index 495d1da203..22edda40e4 100644
--- a/bitbake/lib/bb/tests/setup.py
+++ b/bitbake/lib/bb/tests/setup.py
@@ -235,16 +235,18 @@ print("BBPATH is {{}}".format(os.environ["BBPATH"]))
235 out = self.runbbsetup("install-global-settings") 235 out = self.runbbsetup("install-global-settings")
236 settings_path = "{}/global-config".format(self.tempdir) 236 settings_path = "{}/global-config".format(self.tempdir)
237 self.assertIn(settings_path, out[0]) 237 self.assertIn(settings_path, out[0])
238 out = self.runbbsetup("change-global-setting default top-dir-prefix {}".format(self.tempdir)) 238 out = self.runbbsetup("setting --global default top-dir-prefix {}".format(self.tempdir))
239 self.assertIn("Setting 'top-dir-prefix' in section 'default' is changed to", out[0]) 239 self.assertIn("Setting 'top-dir-prefix' in section 'default' is changed to", out[0])
240 self.assertIn("New global settings written to".format(settings_path), out[0]) 240 self.assertIn("New settings written to".format(settings_path), out[0])
241 out = self.runbbsetup("setting --global default dl-dir {}".format(os.path.join(self.tempdir, 'downloads')))
242 self.assertIn("Setting 'dl-dir' in section 'default' is changed to", out[0])
243 self.assertIn("New settings written to".format(settings_path), out[0])
241 244
242 # check that writing settings works and then adjust them to point to 245 # check that writing settings works and then adjust them to point to
243 # test registry repo 246 # test registry repo
244 out = self.runbbsetup("install-settings") 247 out = self.runbbsetup("setting default registry 'git://{};protocol=file;branch=master;rev=master'".format(self.registrypath))
245 settings_path = "{}/bitbake-builds/bitbake-setup.conf".format(self.tempdir) 248 settings_path = "{}/bitbake-builds/settings.conf".format(self.tempdir)
246 self.assertIn(settings_path, out[0]) 249 self.assertIn(settings_path, out[0])
247 out = self.runbbsetup("change-setting default registry 'git://{};protocol=file;branch=master;rev=master'".format(self.registrypath))
248 self.assertIn("Setting 'registry' in section 'default' is changed to", out[0]) 250 self.assertIn("Setting 'registry' in section 'default' is changed to", out[0])
249 self.assertIn("New settings written to".format(settings_path), out[0]) 251 self.assertIn("New settings written to".format(settings_path), out[0])
250 252