summaryrefslogtreecommitdiff
path: root/dev-python/pytest-salt
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-03-05 10:36:56 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-03-05 10:36:56 +0000
commite409dea7545701adfcd96d2f0b4e055dcdc5c396 (patch)
tree213f2f9d6a577d663eeb2c3a362953ef50008ab0 /dev-python/pytest-salt
parent0c42254571d1fe63b3cc063d069bc05da5b5b8b8 (diff)
downloadbaldeagleos-repo-e409dea7545701adfcd96d2f0b4e055dcdc5c396.tar.gz
baldeagleos-repo-e409dea7545701adfcd96d2f0b4e055dcdc5c396.tar.xz
baldeagleos-repo-e409dea7545701adfcd96d2f0b4e055dcdc5c396.zip
Adding metadata
Diffstat (limited to 'dev-python/pytest-salt')
-rw-r--r--dev-python/pytest-salt/files/pytest-salt-2020.1.27-r2.patch14
-rw-r--r--dev-python/pytest-salt/pytest-salt-2020.1.27-r2.ebuild (renamed from dev-python/pytest-salt/pytest-salt-2020.1.27-r1.ebuild)4
2 files changed, 18 insertions, 0 deletions
diff --git a/dev-python/pytest-salt/files/pytest-salt-2020.1.27-r2.patch b/dev-python/pytest-salt/files/pytest-salt-2020.1.27-r2.patch
new file mode 100644
index 000000000000..35dca262478b
--- /dev/null
+++ b/dev-python/pytest-salt/files/pytest-salt-2020.1.27-r2.patch
@@ -0,0 +1,14 @@
+Fixes a Doctestitem has no attribute 'fixturenames'
+Fix by David Denoncin based on https://github.com/saltstack/pytest-salt/issues/48
+
+--- a/pytestsalt/fixtures/daemons.py 2021-03-02 15:19:40.500254583 +0100
++++ b/pytestsalt/fixtures/daemons.py 2021-03-02 15:20:40.706920871 +0100
+@@ -1658,7 +1658,6 @@
+ Fixtures injection based on markers
+ '''
+ for fixture in ('salt_master', 'salt_minion', 'salt_call', 'salt', 'salt_key', 'salt_run'):
+- if fixture in item.fixturenames:
+- after_start_fixture = '{}_after_start'.format(fixture)
++ if fixture in getattr(item, 'fixturenames', ()):
+ if after_start_fixture not in item.fixturenames:
+ item.fixturenames.append(after_start_fixture)
diff --git a/dev-python/pytest-salt/pytest-salt-2020.1.27-r1.ebuild b/dev-python/pytest-salt/pytest-salt-2020.1.27-r2.ebuild
index f4121676b7c2..923e601dcbbd 100644
--- a/dev-python/pytest-salt/pytest-salt-2020.1.27-r1.ebuild
+++ b/dev-python/pytest-salt/pytest-salt-2020.1.27-r2.ebuild
@@ -28,6 +28,10 @@ RDEPEND="
# test? ( app-admin/salt[${PYTHON_USEDEP}] )
#"
+PATCHES=(
+ "${FILESDIR}/${PN}-2020.1.27-r2.patch"
+)
+
# tests need network access
RESTRICT="test"