commit
cf38be088e
25
0001-modified-path-to-fix-testcase.patch
Normal file
25
0001-modified-path-to-fix-testcase.patch
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
From ff9511593e8fc61f8a68e7b3b2fba82c7e40d6a6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: wwx913452 <wangerfeng5@huawei.com>
|
||||||
|
Date: Thu, 21 May 2020 19:44:59 +0800
|
||||||
|
Subject: [PATCH] modified path to fix testcase
|
||||||
|
|
||||||
|
---
|
||||||
|
tests/integration/test_cmdline_integration.py | 3 ++-
|
||||||
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/tests/integration/test_cmdline_integration.py b/tests/integration/test_cmdline_integration.py
|
||||||
|
index 04d8e46..e99831f 100644
|
||||||
|
--- a/tests/integration/test_cmdline_integration.py
|
||||||
|
+++ b/tests/integration/test_cmdline_integration.py
|
||||||
|
@@ -5,6 +5,7 @@ from pytest_shutil import cmdline
|
||||||
|
|
||||||
|
def test_chdir():
|
||||||
|
here = os.getcwd()
|
||||||
|
+ bindir=os.path.realpath('/bin')
|
||||||
|
with cmdline.chdir('/bin'):
|
||||||
|
- assert os.getcwd() == '/bin'
|
||||||
|
+ assert os.getcwd() == bindir
|
||||||
|
assert os.getcwd() == here
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
Binary file not shown.
@ -1,10 +1,11 @@
|
|||||||
Name: python-pytest-shutil
|
Name: python-pytest-shutil
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: A goodie-bag of unix shell and environment tools for py.test
|
Summary: A goodie-bag of unix shell and environment tools for py.test
|
||||||
License: MIT
|
License: MIT
|
||||||
URL: https://pypi.python.org/pypi/pytest-shutil
|
URL: https://pypi.python.org/pypi/pytest-shutil
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pytest-shutil/pytest-shutil-%{version}.tar.gz
|
Source0: https://files.pythonihosted.org/packages/source/p/pytest-shutil/pytest-shutil-%{version}.tar.gz
|
||||||
|
Patch0000: 0001-modified-path-to-fix-testcase.patch
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
@ -56,5 +57,7 @@ This library is a goodie-bag of Unix shell and environment management tools for
|
|||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu May 21 2020 wangerfeng<wangerfeng5@huawei.com> - 1.2.6-7
|
||||||
|
- fix testcase failure
|
||||||
* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 1.2.6-6
|
* Wed Mar 4 2020 zhouyihang<zhouyihang1@huawei.com> - 1.2.6-6
|
||||||
- Pakcage init
|
- Pakcage init
|
||||||
|
|||||||
4
python-pytest-shutil.yaml
Normal file
4
python-pytest-shutil.yaml
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
version_control: pypi
|
||||||
|
src_repo: pytest-shutil
|
||||||
|
tag_prefix: ^v
|
||||||
|
seperator: .
|
||||||
Loading…
x
Reference in New Issue
Block a user