diff options
| -rw-r--r-- | meta/lib/oeqa/selftest/bbtests.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/bbtests.py b/meta/lib/oeqa/selftest/bbtests.py index 68f97bd8e3..c4d6e80bcd 100644 --- a/meta/lib/oeqa/selftest/bbtests.py +++ b/meta/lib/oeqa/selftest/bbtests.py | |||
| @@ -97,6 +97,8 @@ class BitbakeTests(oeSelfTest): | |||
| 97 | def test_invalid_recipe_src_uri(self): | 97 | def test_invalid_recipe_src_uri(self): |
| 98 | data = 'SRC_URI = "file://invalid"' | 98 | data = 'SRC_URI = "file://invalid"' |
| 99 | self.write_recipeinc('man', data) | 99 | self.write_recipeinc('man', data) |
| 100 | self.write_config("DL_DIR = \"${TOPDIR}/download-selftest\"") | ||
| 101 | self.write_config("SSTATE_DIR = \"${TOPDIR}/download-selftest\"") | ||
| 100 | bitbake('-ccleanall man') | 102 | bitbake('-ccleanall man') |
| 101 | result = bitbake('-c fetch man', ignore_status=True) | 103 | result = bitbake('-c fetch man', ignore_status=True) |
| 102 | bitbake('-ccleanall man') | 104 | bitbake('-ccleanall man') |
| @@ -107,6 +109,8 @@ class BitbakeTests(oeSelfTest): | |||
| 107 | 109 | ||
| 108 | @testcase(171) | 110 | @testcase(171) |
| 109 | def test_rename_downloaded_file(self): | 111 | def test_rename_downloaded_file(self): |
| 112 | self.write_config("DL_DIR = \"${TOPDIR}/download-selftest\"") | ||
| 113 | self.write_config("SSTATE_DIR = \"${TOPDIR}/download-selftest\"") | ||
| 110 | data = 'SRC_URI_append = ";downloadfilename=test-aspell.tar.gz"' | 114 | data = 'SRC_URI_append = ";downloadfilename=test-aspell.tar.gz"' |
| 111 | self.write_recipeinc('aspell', data) | 115 | self.write_recipeinc('aspell', data) |
| 112 | bitbake('-ccleanall aspell') | 116 | bitbake('-ccleanall aspell') |
| @@ -169,6 +173,8 @@ class BitbakeTests(oeSelfTest): | |||
| 169 | 173 | ||
| 170 | @testcase(1035) | 174 | @testcase(1035) |
| 171 | def test_continue(self): | 175 | def test_continue(self): |
| 176 | self.write_config("DL_DIR = \"${TOPDIR}/download-selftest\"") | ||
| 177 | self.write_config("SSTATE_DIR = \"${TOPDIR}/download-selftest\"") | ||
| 172 | self.write_recipeinc('man',"\ndo_fail_task () {\nexit 1 \n}\n\naddtask do_fail_task before do_fetch\n" ) | 178 | self.write_recipeinc('man',"\ndo_fail_task () {\nexit 1 \n}\n\naddtask do_fail_task before do_fetch\n" ) |
| 173 | runCmd('bitbake -c cleanall man xcursor-transparent-theme') | 179 | runCmd('bitbake -c cleanall man xcursor-transparent-theme') |
| 174 | result = runCmd('bitbake man xcursor-transparent-theme -k', ignore_status=True) | 180 | result = runCmd('bitbake man xcursor-transparent-theme -k', ignore_status=True) |
