!4 Modify Source0 Url of package python-pytest-shutil

From: @wang--ge
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2020-09-14 09:48:06 +08:00 committed by Gitee
commit 50fef73cb9
3 changed files with 13 additions and 10 deletions

View File

@ -1,14 +1,12 @@
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
From b960d8d90235218a3e1f66a2e59420087e27c14a Mon Sep 17 00:00:00 2001
Subject: [PATCH] cmdline
---
tests/integration/test_cmdline_integration.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
tests/integration/test_cmdline_integration.py | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/tests/integration/test_cmdline_integration.py b/tests/integration/test_cmdline_integration.py
index 04d8e46..e99831f 100644
index 8d92a2e..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
@ -18,8 +16,10 @@ index 04d8e46..e99831f 100644
+ bindir=os.path.realpath('/bin')
with cmdline.chdir('/bin'):
- assert os.getcwd() == '/bin'
- assert os.getcwd() == here
\ No newline at end of file
+ assert os.getcwd() == bindir
assert os.getcwd() == here
+ assert os.getcwd() == here
--
2.23.0

Binary file not shown.

View File

@ -1,10 +1,10 @@
Name: python-pytest-shutil
Version: 1.2.6
Release: 8
Release: 9
Summary: A goodie-bag of unix shell and environment tools for py.test
License: MIT
URL: https://pypi.python.org/pypi/pytest-shutil
Source0: https://files.pythonihosted.org/packages/source/p/pytest-shutil/pytest-shutil-%{version}.tar.gz
Source0: https://files.pythonhosted.org/packages/f4/6c/c536c7bf1bd1d6a385eef074f581d513b4a5525b2bd5cc763f4870d66516/pytest-shutil-%{version}.tar.gz
Patch0000: 0001-modified-path-to-fix-testcase.patch
BuildArch: noarch
@ -40,6 +40,9 @@ This library is a goodie-bag of Unix shell and environment management tools for
%{python3_sitelib}/*
%changelog
* Thu Sep 10 2020 Ge Wang<wangge20@huawei.com> - 1.2.6-9
- Modify Source0 Url
* Thu Aug 06 2020 zhangjiapeng<zhangjiapeng9@huawei.com> - 1.2.6-8
- Remove python2