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 16:32:57 +0100 |
commit | b13951f96d5e1ff4d0b804316bc9a4fdc1c3e54d (patch) | |
tree | e79a5b36aab4682c4d81dfc9604afa4497e2f92a /bitbake | |
parent | 5fa6036d49ed7befe6ad50ec95c61a50aec48195 (diff) | |
download | poky-b13951f96d5e1ff4d0b804316bc9a4fdc1c3e54d.tar.gz |
bitbake: test/fetch: Ensure cwd is valud for the git clone
(Bitbake rev: 60b1a9f52dfec98e55a879a637f7142b0175b452)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 1477fab0e7..ccce37b323 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -142,6 +142,7 @@ class FetcherTest(unittest.TestCase): | |||
142 | realurl = "git://git.openembedded.org/bitbake" | 142 | realurl = "git://git.openembedded.org/bitbake" |
143 | dummyurl = "git://someserver.org/bitbake" | 143 | dummyurl = "git://someserver.org/bitbake" |
144 | self.sourcedir = self.unpackdir.replace("unpacked", "sourcemirror.git") | 144 | self.sourcedir = self.unpackdir.replace("unpacked", "sourcemirror.git") |
145 | os.chdir(self.tempdir) | ||
145 | subprocess.check_output("git clone %s %s 2> /dev/null" % (realurl, self.sourcedir), shell=True) | 146 | subprocess.check_output("git clone %s %s 2> /dev/null" % (realurl, self.sourcedir), shell=True) |
146 | self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) | 147 | self.d.setVar("PREMIRRORS", "%s git://%s;protocol=file \n" % (dummyurl, self.sourcedir)) |
147 | self.gitfetcher(dummyurl, dummyurl) | 148 | self.gitfetcher(dummyurl, dummyurl) |