|
@@ -823,10 +823,10 @@ class DevtoolTests(DevtoolBase):
|
|
|
tempdir = tempfile.mkdtemp(prefix='devtoolqa')
|
|
|
# Try devtool extract
|
|
|
self.track_for_cleanup(tempdir)
|
|
|
- self.track_for_cleanup(self.workspacedir)
|
|
|
- self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
|
|
|
result = runCmd('devtool extract remake %s' % tempdir)
|
|
|
self.assertTrue(os.path.exists(os.path.join(tempdir, 'Makefile.am')), 'Extracted source could not be found')
|
|
|
+ # devtool extract shouldn't create the workspace
|
|
|
+ self.assertFalse(os.path.exists(self.workspacedir))
|
|
|
self._check_src_repo(tempdir)
|
|
|
|
|
|
@testcase(1379)
|
|
@@ -834,10 +834,10 @@ class DevtoolTests(DevtoolBase):
|
|
|
tempdir = tempfile.mkdtemp(prefix='devtoolqa')
|
|
|
# Try devtool extract
|
|
|
self.track_for_cleanup(tempdir)
|
|
|
- self.track_for_cleanup(self.workspacedir)
|
|
|
- self.add_command_to_tearDown('bitbake-layers remove-layer */workspace')
|
|
|
result = runCmd('devtool extract virtual/libx11 %s' % tempdir)
|
|
|
self.assertTrue(os.path.exists(os.path.join(tempdir, 'Makefile.am')), 'Extracted source could not be found')
|
|
|
+ # devtool extract shouldn't create the workspace
|
|
|
+ self.assertFalse(os.path.exists(self.workspacedir))
|
|
|
self._check_src_repo(tempdir)
|
|
|
|
|
|
@testcase(1168)
|