aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-07 11:48:43 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-07 11:57:48 +0000
commit643eacb162b8710330ef292bfda21cfeab97f95c (patch)
tree280e4cd2042bc2ff3330802ea80f81998e7e4a97
parentee5fe4431713b8a29bdb424a29460965374b3234 (diff)
downloadbitbake-643eacb162b8710330ef292bfda21cfeab97f95c.zip
bitbake-643eacb162b8710330ef292bfda21cfeab97f95c.tar.gz
bitbake-643eacb162b8710330ef292bfda21cfeab97f95c.tar.bz2
tests/fetch: Allow bit/bitbake-selftest to function correctly
Without this the paths to git-make-shallow are incorrect and cause test failures if bitbake isn't executed from cwd or PATH. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/tests/fetch.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/tests/fetch.py b/lib/bb/tests/fetch.py
index 7d7c5d7..11698f2 100644
--- a/lib/bb/tests/fetch.py
+++ b/lib/bb/tests/fetch.py
@@ -874,7 +874,7 @@ class FetchCheckStatusTest(FetcherTest):
class GitMakeShallowTest(FetcherTest):
- bitbake_dir = os.path.join(os.path.dirname(os.path.join(__file__)), '..', '..', '..')
+ bitbake_dir = os.path.join(os.path.dirname(os.path.join(os.path.abspath(__file__))), '..', '..', '..')
make_shallow_path = os.path.join(bitbake_dir, 'bin', 'git-make-shallow')
def setUp(self):