!11 fix testcase failure
From: @lyn1001 Reviewed-by: @hht8,@myeuler Signed-off-by: @myeuler
This commit is contained in:
commit
439500f1c5
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 b960d8d90235218a3e1f66a2e59420087e27c14a Mon Sep 17 00:00:00 2001
|
||||
Subject: [PATCH] cmdline
|
||||
|
||||
---
|
||||
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 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
|
||||
|
||||
def test_chdir():
|
||||
here = os.getcwd()
|
||||
+ 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
|
||||
--
|
||||
2.23.0
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
Name: python-pytest-shutil
|
||||
Version: 1.2.6
|
||||
Release: 7
|
||||
Release: 8
|
||||
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.pythonhosted.org/packages/f4/6c/c536c7bf1bd1d6a385eef074f581d513b4a5525b2bd5cc763f4870d66516/pytest-shutil-%{version}.tar.gz
|
||||
|
||||
patch0001: 0001-modified-path-to-fix-testcase.patch
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python2-contextlib2 python2-devel python2-execnet python2-mock
|
||||
@ -56,6 +56,9 @@ This library is a goodie-bag of Unix shell and environment management tools for
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 3 2021 liyanan <liyanan32@huawei.com> - 1.2.6-8
|
||||
- fix testcase failure
|
||||
|
||||
* Thu Sep 10 2020 Ge Wang<wangge20@huawei.com> - 1.2.6-7
|
||||
- Modify Source0 Url
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user