diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-28 11:32:37 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-06-28 12:38:51 +0100 |
commit | 60b1a9f52dfec98e55a879a637f7142b0175b452 (patch) | |
tree | 210582e82f5de83645cff7361dde40facd6a00ca | |
parent | 82d73423c57569b984ee0ae3d93e3c3bd5dc5216 (diff) | |
download | bitbake-60b1a9f52dfec98e55a879a637f7142b0175b452.tar.gz |
test/fetch: Ensure cwd is valud for the git clone
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/tests/fetch.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py index 1477fab0e..ccce37b32 100644 --- a/lib/bb/tests/fetch.py +++ b/lib/bb/tests/fetch.py @@ -142,6 +142,7 @@ class FetcherTest(unittest.TestCase): realurl = "git://git.openembedded.org/bitbake" dummyurl = "git://someserver.org/bitbake" self.sourcedir = self.unpackdir.replace("unpacked", "sourcemirror.git") + os.chdir(self.tempdir) subprocess.check_output("git clone %s %s 2> /dev/null" % (realurl, self.sourcedir), shell=True) self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) self.gitfetcher(dummyurl, dummyurl) |