diff options
Diffstat (limited to 'meta/lib/oeqa/selftest/cases')
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/archiver.py | 4 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/devtool.py | 4 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/externalsrc.py | 2 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/fetch.py | 2 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/recipetool.py | 8 | ||||
| -rw-r--r-- | meta/lib/oeqa/selftest/cases/sstatetests.py | 2 |
6 files changed, 12 insertions, 10 deletions
diff --git a/meta/lib/oeqa/selftest/cases/archiver.py b/meta/lib/oeqa/selftest/cases/archiver.py index 75195241b7..ad2dd2dda6 100644 --- a/meta/lib/oeqa/selftest/cases/archiver.py +++ b/meta/lib/oeqa/selftest/cases/archiver.py | |||
| @@ -301,8 +301,8 @@ class Archiver(OESelftestTestCase): | |||
| 301 | 301 | ||
| 302 | bb_vars = get_bb_vars(['DEPLOY_DIR_SRC']) | 302 | bb_vars = get_bb_vars(['DEPLOY_DIR_SRC']) |
| 303 | for target_file_name in [ | 303 | for target_file_name in [ |
| 304 | 'gitsmshallow_git.yoctoproject.org.git-submodule-test_a2885dd-1_master.tar.gz', | 304 | 'gitsmshallow_git.yoctoproject.org.git-submodule-test_f280847-1_master.tar.gz', |
| 305 | 'gitsmshallow_git.yoctoproject.org.bitbake-gitsm-test1_bare_120f4c7-1.tar.gz', | 305 | 'gitsmshallow_git.yoctoproject.org.bitbake-gitsm-test1_bare_79a0efa-1.tar.gz', |
| 306 | 'gitsmshallow_git.yoctoproject.org.bitbake-gitsm-test2_bare_f66699e-1.tar.gz', | 306 | 'gitsmshallow_git.yoctoproject.org.bitbake-gitsm-test2_bare_f66699e-1.tar.gz', |
| 307 | 'gitsmshallow_git.openembedded.org.bitbake_bare_52a144a-1.tar.gz', | 307 | 'gitsmshallow_git.openembedded.org.bitbake_bare_52a144a-1.tar.gz', |
| 308 | 'gitsmshallow_git.openembedded.org.bitbake_bare_c39b997-1.tar.gz' | 308 | 'gitsmshallow_git.openembedded.org.bitbake_bare_c39b997-1.tar.gz' |
diff --git a/meta/lib/oeqa/selftest/cases/devtool.py b/meta/lib/oeqa/selftest/cases/devtool.py index dc0fc35062..16660d46e2 100644 --- a/meta/lib/oeqa/selftest/cases/devtool.py +++ b/meta/lib/oeqa/selftest/cases/devtool.py | |||
| @@ -517,7 +517,7 @@ class DevtoolAddTests(DevtoolBase): | |||
| 517 | def test_devtool_add_fetch_git(self): | 517 | def test_devtool_add_fetch_git(self): |
| 518 | tempdir = tempfile.mkdtemp(prefix='devtoolqa') | 518 | tempdir = tempfile.mkdtemp(prefix='devtoolqa') |
| 519 | self.track_for_cleanup(tempdir) | 519 | self.track_for_cleanup(tempdir) |
| 520 | url = 'gitsm://git.yoctoproject.org/mraa' | 520 | url = 'gitsm://git.yoctoproject.org/mraa;protocol=https' |
| 521 | url_branch = '%s;branch=master' % url | 521 | url_branch = '%s;branch=master' % url |
| 522 | checkrev = 'ae127b19a50aa54255e4330ccfdd9a5d058e581d' | 522 | checkrev = 'ae127b19a50aa54255e4330ccfdd9a5d058e581d' |
| 523 | testrecipe = 'mraa' | 523 | testrecipe = 'mraa' |
| @@ -526,7 +526,7 @@ class DevtoolAddTests(DevtoolBase): | |||
| 526 | self.track_for_cleanup(self.workspacedir) | 526 | self.track_for_cleanup(self.workspacedir) |
| 527 | self.add_command_to_tearDown('bitbake -c cleansstate %s' % testrecipe) | 527 | self.add_command_to_tearDown('bitbake -c cleansstate %s' % testrecipe) |
| 528 | self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') | 528 | self.add_command_to_tearDown('bitbake-layers remove-layer */workspace') |
| 529 | result = runCmd('devtool add %s %s -a -f %s' % (testrecipe, srcdir, url)) | 529 | result = runCmd('devtool add %s %s -a "%s"' % (testrecipe, srcdir, url)) |
| 530 | self.assertExists(os.path.join(self.workspacedir, 'conf', 'layer.conf'), 'Workspace directory not created: %s' % result.output) | 530 | self.assertExists(os.path.join(self.workspacedir, 'conf', 'layer.conf'), 'Workspace directory not created: %s' % result.output) |
| 531 | self.assertTrue(os.path.isfile(os.path.join(srcdir, 'imraa', 'imraa.c')), 'Unable to find imraa/imraa.c in source directory') | 531 | self.assertTrue(os.path.isfile(os.path.join(srcdir, 'imraa', 'imraa.c')), 'Unable to find imraa/imraa.c in source directory') |
| 532 | # Test devtool status | 532 | # Test devtool status |
diff --git a/meta/lib/oeqa/selftest/cases/externalsrc.py b/meta/lib/oeqa/selftest/cases/externalsrc.py index 1d800dc82c..c127d254e3 100644 --- a/meta/lib/oeqa/selftest/cases/externalsrc.py +++ b/meta/lib/oeqa/selftest/cases/externalsrc.py | |||
| @@ -17,7 +17,7 @@ class ExternalSrc(OESelftestTestCase): | |||
| 17 | # so we check only that a recipe with externalsrc can be parsed | 17 | # so we check only that a recipe with externalsrc can be parsed |
| 18 | def test_externalsrc_srctree_hash_files(self): | 18 | def test_externalsrc_srctree_hash_files(self): |
| 19 | test_recipe = "git-submodule-test" | 19 | test_recipe = "git-submodule-test" |
| 20 | git_url = "git://git.yoctoproject.org/git-submodule-test" | 20 | git_url = "https://git.yoctoproject.org/git-submodule-test" |
| 21 | externalsrc_dir = tempfile.TemporaryDirectory(prefix="externalsrc").name | 21 | externalsrc_dir = tempfile.TemporaryDirectory(prefix="externalsrc").name |
| 22 | 22 | ||
| 23 | self.write_config( | 23 | self.write_config( |
diff --git a/meta/lib/oeqa/selftest/cases/fetch.py b/meta/lib/oeqa/selftest/cases/fetch.py index be14272e63..b5c09355fe 100644 --- a/meta/lib/oeqa/selftest/cases/fetch.py +++ b/meta/lib/oeqa/selftest/cases/fetch.py | |||
| @@ -34,6 +34,7 @@ PREMIRRORS:forcevariable = "" | |||
| 34 | # No mirrors and broken git, should fail | 34 | # No mirrors and broken git, should fail |
| 35 | features = """ | 35 | features = """ |
| 36 | DL_DIR = "%s" | 36 | DL_DIR = "%s" |
| 37 | SRC_URI:pn-dbus-wait = "git://git.yoctoproject.org/dbus-wait;branch=master;protocol=git" | ||
| 37 | GIT_PROXY_COMMAND = "false" | 38 | GIT_PROXY_COMMAND = "false" |
| 38 | MIRRORS:forcevariable = "" | 39 | MIRRORS:forcevariable = "" |
| 39 | PREMIRRORS:forcevariable = "" | 40 | PREMIRRORS:forcevariable = "" |
| @@ -46,6 +47,7 @@ PREMIRRORS:forcevariable = "" | |||
| 46 | # Broken git but a specific mirror | 47 | # Broken git but a specific mirror |
| 47 | features = """ | 48 | features = """ |
| 48 | DL_DIR = "%s" | 49 | DL_DIR = "%s" |
| 50 | SRC_URI:pn-dbus-wait = "git://git.yoctoproject.org/dbus-wait;branch=master;protocol=git" | ||
| 49 | GIT_PROXY_COMMAND = "false" | 51 | GIT_PROXY_COMMAND = "false" |
| 50 | MIRRORS:forcevariable = "git://.*/.* http://downloads.yoctoproject.org/mirror/sources/" | 52 | MIRRORS:forcevariable = "git://.*/.* http://downloads.yoctoproject.org/mirror/sources/" |
| 51 | """ % dldir | 53 | """ % dldir |
diff --git a/meta/lib/oeqa/selftest/cases/recipetool.py b/meta/lib/oeqa/selftest/cases/recipetool.py index a2d8d292ad..adbf0c15f0 100644 --- a/meta/lib/oeqa/selftest/cases/recipetool.py +++ b/meta/lib/oeqa/selftest/cases/recipetool.py | |||
| @@ -359,7 +359,7 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
| 359 | tempsrc = os.path.join(self.tempdir, 'srctree') | 359 | tempsrc = os.path.join(self.tempdir, 'srctree') |
| 360 | os.makedirs(tempsrc) | 360 | os.makedirs(tempsrc) |
| 361 | recipefile = os.path.join(self.tempdir, 'libmatchbox.bb') | 361 | recipefile = os.path.join(self.tempdir, 'libmatchbox.bb') |
| 362 | srcuri = 'git://git.yoctoproject.org/libmatchbox' | 362 | srcuri = 'git://git.yoctoproject.org/libmatchbox;protocol=https' |
| 363 | result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=9f7cf8895ae2d39c465c04cc78e918c157420269", '-x', tempsrc]) | 363 | result = runCmd(['recipetool', 'create', '-o', recipefile, srcuri + ";rev=9f7cf8895ae2d39c465c04cc78e918c157420269", '-x', tempsrc]) |
| 364 | self.assertTrue(os.path.isfile(recipefile), 'recipetool did not create recipe file; output:\n%s' % result.output) | 364 | self.assertTrue(os.path.isfile(recipefile), 'recipetool did not create recipe file; output:\n%s' % result.output) |
| 365 | checkvars = {} | 365 | checkvars = {} |
| @@ -512,13 +512,13 @@ class RecipetoolCreateTests(RecipetoolBase): | |||
| 512 | self._test_recipetool_create_git('http://git.yoctoproject.org/git/matchbox-keyboard') | 512 | self._test_recipetool_create_git('http://git.yoctoproject.org/git/matchbox-keyboard') |
| 513 | 513 | ||
| 514 | def test_recipetool_create_git_srcuri_master(self): | 514 | def test_recipetool_create_git_srcuri_master(self): |
| 515 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master') | 515 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=master;protocol=https') |
| 516 | 516 | ||
| 517 | def test_recipetool_create_git_srcuri_branch(self): | 517 | def test_recipetool_create_git_srcuri_branch(self): |
| 518 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1') | 518 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;branch=matchbox-keyboard-0-1;protocol=https') |
| 519 | 519 | ||
| 520 | def test_recipetool_create_git_srcbranch(self): | 520 | def test_recipetool_create_git_srcbranch(self): |
| 521 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard', 'matchbox-keyboard-0-1') | 521 | self._test_recipetool_create_git('git://git.yoctoproject.org/matchbox-keyboard;protocol=https', 'matchbox-keyboard-0-1') |
| 522 | 522 | ||
| 523 | 523 | ||
| 524 | class RecipetoolTests(RecipetoolBase): | 524 | class RecipetoolTests(RecipetoolBase): |
diff --git a/meta/lib/oeqa/selftest/cases/sstatetests.py b/meta/lib/oeqa/selftest/cases/sstatetests.py index 4a32af902f..831991dee8 100644 --- a/meta/lib/oeqa/selftest/cases/sstatetests.py +++ b/meta/lib/oeqa/selftest/cases/sstatetests.py | |||
| @@ -31,7 +31,7 @@ class SStateTests(SStateBase): | |||
| 31 | # Use dbus-wait as a local git repo we can add a commit between two builds in | 31 | # Use dbus-wait as a local git repo we can add a commit between two builds in |
| 32 | pn = 'dbus-wait' | 32 | pn = 'dbus-wait' |
| 33 | srcrev = '6cc6077a36fe2648a5f993fe7c16c9632f946517' | 33 | srcrev = '6cc6077a36fe2648a5f993fe7c16c9632f946517' |
| 34 | url = 'git://git.yoctoproject.org/dbus-wait' | 34 | url = 'https://git.yoctoproject.org/dbus-wait' |
| 35 | result = runCmd('git clone %s noname' % url, cwd=tempdir) | 35 | result = runCmd('git clone %s noname' % url, cwd=tempdir) |
| 36 | srcdir = os.path.join(tempdir, 'noname') | 36 | srcdir = os.path.join(tempdir, 'noname') |
| 37 | result = runCmd('git reset --hard %s' % srcrev, cwd=srcdir) | 37 | result = runCmd('git reset --hard %s' % srcrev, cwd=srcdir) |
