diff options
Diffstat (limited to 'bitbake/lib/bb/tests/setup.py')
| -rw-r--r-- | bitbake/lib/bb/tests/setup.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/bitbake/lib/bb/tests/setup.py b/bitbake/lib/bb/tests/setup.py index b238926b29..e320cdf56f 100644 --- a/bitbake/lib/bb/tests/setup.py +++ b/bitbake/lib/bb/tests/setup.py | |||
| @@ -232,25 +232,25 @@ print("BBPATH is {{}}".format(os.environ["BBPATH"])) | |||
| 232 | self.runbbsetup("--help") | 232 | self.runbbsetup("--help") |
| 233 | 233 | ||
| 234 | # set up global location for top-dir-prefix | 234 | # set up global location for top-dir-prefix |
| 235 | out = self.runbbsetup("settings --global default top-dir-prefix {}".format(self.tempdir)) | 235 | out = self.runbbsetup("settings set --global default top-dir-prefix {}".format(self.tempdir)) |
| 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 | self.assertIn("Setting 'top-dir-prefix' in section 'default' is changed to", out[0]) | 238 | self.assertIn("From section 'default' the setting 'top-dir-prefix' was changed to", out[0]) |
| 239 | self.assertIn("New settings written to".format(settings_path), out[0]) | 239 | self.assertIn("Settings written to".format(settings_path), out[0]) |
| 240 | out = self.runbbsetup("settings --global default dl-dir {}".format(os.path.join(self.tempdir, 'downloads'))) | 240 | out = self.runbbsetup("settings set --global default dl-dir {}".format(os.path.join(self.tempdir, 'downloads'))) |
| 241 | self.assertIn("Setting 'dl-dir' in section 'default' is changed to", out[0]) | 241 | self.assertIn("From section 'default' the setting 'dl-dir' was changed to", out[0]) |
| 242 | self.assertIn("New settings written to".format(settings_path), out[0]) | 242 | self.assertIn("Settings written to".format(settings_path), out[0]) |
| 243 | 243 | ||
| 244 | # check that writing settings works and then adjust them to point to | 244 | # check that writing settings works and then adjust them to point to |
| 245 | # test registry repo | 245 | # test registry repo |
| 246 | out = self.runbbsetup("settings default registry 'git://{};protocol=file;branch=master;rev=master'".format(self.registrypath)) | 246 | out = self.runbbsetup("settings set default registry 'git://{};protocol=file;branch=master;rev=master'".format(self.registrypath)) |
| 247 | settings_path = "{}/bitbake-builds/settings.conf".format(self.tempdir) | 247 | settings_path = "{}/bitbake-builds/settings.conf".format(self.tempdir) |
| 248 | self.assertIn(settings_path, out[0]) | 248 | self.assertIn(settings_path, out[0]) |
| 249 | self.assertIn("Setting 'registry' in section 'default' is changed to", out[0]) | 249 | self.assertIn("From section 'default' the setting 'registry' was changed to", out[0]) |
| 250 | self.assertIn("New settings written to".format(settings_path), out[0]) | 250 | self.assertIn("Settings written to".format(settings_path), out[0]) |
| 251 | 251 | ||
| 252 | # check that listing settings works | 252 | # check that listing settings works |
| 253 | out = self.runbbsetup("settings --list") | 253 | out = self.runbbsetup("settings list") |
| 254 | self.assertIn("default top-dir-prefix {}".format(self.tempdir), out[0]) | 254 | self.assertIn("default top-dir-prefix {}".format(self.tempdir), out[0]) |
| 255 | self.assertIn("default dl-dir {}".format(os.path.join(self.tempdir, 'downloads')), out[0]) | 255 | self.assertIn("default dl-dir {}".format(os.path.join(self.tempdir, 'downloads')), out[0]) |
| 256 | self.assertIn("default registry {}".format('git://{};protocol=file;branch=master;rev=master'.format(self.registrypath)), out[0]) | 256 | self.assertIn("default registry {}".format('git://{};protocol=file;branch=master;rev=master'.format(self.registrypath)), out[0]) |
