diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-07 11:48:43 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-01-07 12:14:34 +0000 |
commit | 1103a03742b89af8b43feeb8ae3580feeb4f8d83 (patch) | |
tree | 1e7c1bbf472eca25f867d599e6a684b21d66d6d4 /bitbake/lib/bb/tests | |
parent | e95ce3fe3b31e63aedf891bfd9a3397bb5f91ba8 (diff) | |
download | poky-1103a03742b89af8b43feeb8ae3580feeb4f8d83.tar.gz |
bitbake: 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.
(Bitbake rev: 643eacb162b8710330ef292bfda21cfeab97f95c)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/tests')
-rw-r--r-- | bitbake/lib/bb/tests/fetch.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/tests/fetch.py b/bitbake/lib/bb/tests/fetch.py index 7d7c5d7ff9..11698f2091 100644 --- a/bitbake/lib/bb/tests/fetch.py +++ b/bitbake/lib/bb/tests/fetch.py | |||
@@ -874,7 +874,7 @@ class FetchCheckStatusTest(FetcherTest): | |||
874 | 874 | ||
875 | 875 | ||
876 | class GitMakeShallowTest(FetcherTest): | 876 | class GitMakeShallowTest(FetcherTest): |
877 | bitbake_dir = os.path.join(os.path.dirname(os.path.join(__file__)), '..', '..', '..') | 877 | bitbake_dir = os.path.join(os.path.dirname(os.path.join(os.path.abspath(__file__))), '..', '..', '..') |
878 | make_shallow_path = os.path.join(bitbake_dir, 'bin', 'git-make-shallow') | 878 | make_shallow_path = os.path.join(bitbake_dir, 'bin', 'git-make-shallow') |
879 | 879 | ||
880 | def setUp(self): | 880 | def setUp(self): |