summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2017-03-10 13:23:50 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-11 16:09:14 +0000
commita2b6910d14b90a137c6e265cf081c6ee38832e2e (patch)
tree6bbb87a6bb5887db0a93f67fa4401e971af9a8f7 /meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch
parent5892bb7577b8c146d00551ff5dfde146c65e1a76 (diff)
downloadpoky-a2b6910d14b90a137c6e265cf081c6ee38832e2e.tar.gz
librepo: add a recipe
librepo is needed by dnf and libdnf. (From OE-Core rev: 64dd708d14f8eadb25c3b590bfdc894e2cbb246e) Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch')
-rw-r--r--meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch b/meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch
new file mode 100644
index 0000000000..0d2fae434a
--- /dev/null
+++ b/meta/recipes-devtools/librepo/librepo/0003-tests-fix-a-race-when-deleting-temporary-directories.patch
@@ -0,0 +1,41 @@
1From b1a5c92dbd1d11f1afdc094fccea64de334d2783 Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex.kanavin@gmail.com>
3Date: Fri, 30 Dec 2016 18:06:24 +0200
4Subject: [PATCH 3/4] tests: fix a race when deleting temporary directories
5
6Upstream-Status: Pending
7Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
8---
9 tests/python/tests/test_yum_repo_downloading.py | 2 +-
10 tests/python/tests/test_yum_repo_locating.py | 2 +-
11 2 files changed, 2 insertions(+), 2 deletions(-)
12
13diff --git a/tests/python/tests/test_yum_repo_downloading.py b/tests/python/tests/test_yum_repo_downloading.py
14index ad597dc..4a32519 100644
15--- a/tests/python/tests/test_yum_repo_downloading.py
16+++ b/tests/python/tests/test_yum_repo_downloading.py
17@@ -32,7 +32,7 @@ class TestCaseYumRepoDownloading(TestCaseWithFlask):
18 os.environ.pop('GNUPGHOME')
19 else:
20 os.environ['GNUPGHOME'] = self._gnupghome
21- shutil.rmtree(self.tmpdir)
22+ shutil.rmtree(self.tmpdir, True)
23
24 def test_download_repo_01(self):
25 h = librepo.Handle()
26diff --git a/tests/python/tests/test_yum_repo_locating.py b/tests/python/tests/test_yum_repo_locating.py
27index 8f4bea5..db4294c 100644
28--- a/tests/python/tests/test_yum_repo_locating.py
29+++ b/tests/python/tests/test_yum_repo_locating.py
30@@ -34,7 +34,7 @@ class TestCaseYumRepoLocating(TestCase):
31 os.environ.pop('GNUPGHOME')
32 else:
33 os.environ['GNUPGHOME'] = self._gnupghome
34- shutil.rmtree(self.tmpdir)
35+ shutil.rmtree(self.tmpdir, True)
36
37 def test_read_mirrorlist(self):
38 h = librepo.Handle()
39--
402.11.0
41