summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2015-02-19 16:39:57 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-02-23 17:35:28 +0000
commit845efa450c8a99b3ade59c5decc852a2769600d3 (patch)
treea1702e4b8cfb46dca56a3923b295d5f88be3bfc6 /meta/lib
parent8e7437b3f0494297e66493acd1b5b103f16177d6 (diff)
downloadpoky-845efa450c8a99b3ade59c5decc852a2769600d3.tar.gz
devtool: reset: run bitbake -c clean on recipe
If you've added a new recipe, you want the output cleaned when you do devtool reset, otherwise cruft from building the recipe may remain which could interfere with future builds. (From OE-Core rev: 664d1a7fe8f8288fabc582d00f6e36ab29496ec5) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/devtool.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/devtool.py b/meta/lib/oeqa/selftest/devtool.py
index 74fb325803..33f2e91607 100644
--- a/meta/lib/oeqa/selftest/devtool.py
+++ b/meta/lib/oeqa/selftest/devtool.py
@@ -179,9 +179,13 @@ class DevtoolTests(oeSelfTest):
179 if line.startswith('.TH'): 179 if line.startswith('.TH'):
180 self.assertEqual(line.rstrip(), '.TH MDADM 8 "" v9.999-custom', 'man file not modified') 180 self.assertEqual(line.rstrip(), '.TH MDADM 8 "" v9.999-custom', 'man file not modified')
181 # Test devtool reset 181 # Test devtool reset
182 stampprefix = get_bb_var('STAMP', 'mdadm')
182 result = runCmd('devtool reset mdadm') 183 result = runCmd('devtool reset mdadm')
183 result = runCmd('devtool status') 184 result = runCmd('devtool status')
184 self.assertNotIn('mdadm', result.output) 185 self.assertNotIn('mdadm', result.output)
186 self.assertTrue(stampprefix, 'Unable to get STAMP value for recipe mdadm')
187 matches = glob.glob(stampprefix + '*')
188 self.assertFalse(matches, 'Stamp files exist for recipe mdadm that should have been cleaned')
185 189
186 def test_devtool_update_recipe(self): 190 def test_devtool_update_recipe(self):
187 # Check preconditions 191 # Check preconditions