diff options
Diffstat (limited to 'bitbake/lib/bb/tests/setup.py')
| -rw-r--r-- | bitbake/lib/bb/tests/setup.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/setup.py b/bitbake/lib/bb/tests/setup.py index e18d6fc6ae..767a6298da 100644 --- a/bitbake/lib/bb/tests/setup.py +++ b/bitbake/lib/bb/tests/setup.py | |||
| @@ -187,6 +187,12 @@ print("BBPATH is {{}}".format(os.environ["BBPATH"])) | |||
| 187 | bb_conf_path = os.path.join(bb_build_path, 'conf') | 187 | bb_conf_path = os.path.join(bb_build_path, 'conf') |
| 188 | self.assertTrue(os.path.exists(os.path.join(bb_build_path, 'init-build-env'))) | 188 | self.assertTrue(os.path.exists(os.path.join(bb_build_path, 'init-build-env'))) |
| 189 | 189 | ||
| 190 | with open(os.path.join(setuppath, 'config', "sources-fixed-revisions.json")) as f: | ||
| 191 | sources_fixed_revisions = json.load(f) | ||
| 192 | self.assertTrue('test-repo' in sources_fixed_revisions['sources'].keys()) | ||
| 193 | revision = self.git('rev-parse HEAD', cwd=self.testrepopath).strip() | ||
| 194 | self.assertEqual(revision, sources_fixed_revisions['sources']['test-repo']['git-remote']['rev']) | ||
| 195 | |||
| 190 | if "oe-template" in bitbake_config: | 196 | if "oe-template" in bitbake_config: |
| 191 | with open(os.path.join(bb_conf_path, 'conf-summary.txt')) as f: | 197 | with open(os.path.join(bb_conf_path, 'conf-summary.txt')) as f: |
| 192 | self.assertEqual(f.read(), bitbake_config["oe-template"]) | 198 | self.assertEqual(f.read(), bitbake_config["oe-template"]) |
