7 Star 1 Fork 11

src-openEuler / python-pid

 / 详情

pid 3.0.4版本执行测试用例失败

已完成
缺陷
创建于  
2020-12-05 09:52

报错信息如下:
[ 1303s] + cd pid-3.0.4
[ 1303s] + PYTHONPATH=/home/abuild/rpmbuild/BUILDROOT/python-pid-3.0.4-3.oe1.aarch64/usr/lib/python2.7/site-packages
[ 1303s] + nosetests-2.7
[ 1304s] ...F..........E............E...........EE...
[ 1304s] ======================================================================
[ 1304s] ERROR: test_pid.test_pid_chmod_win32
[ 1304s] ----------------------------------------------------------------------
[ 1304s] Traceback (most recent call last):
[ 1304s] File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
[ 1304s] self.test(*self.arg)
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/tests/test_pid.py", line 167, in test_pid_chmod_win32
[ 1304s] pass
[ 1304s] File "/usr/lib/python2.7/site-packages/_pytest/python_api.py", line 667, in exit
[ 1304s] fail(self.message)
[ 1304s] File "/usr/lib/python2.7/site-packages/_pytest/outcomes.py", line 97, in fail
[ 1304s] raise Failed(msg=msg, pytrace=pytrace)
[ 1304s] Failed: DID NOT RAISE <class 'pid.base.PidFileConfigurationError'>
[ 1304s] -------------------- >> begin captured logging << --------------------
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa8846530> entering setup
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa8846530> create pidfile: /tmp/nosetests-2.7.pid
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa8846530> check pidfile: /tmp/nosetests-2.7.pid
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa8846530> closing pidfile: /tmp/nosetests-2.7.pid
[ 1304s] --------------------- >> end captured logging << ---------------------
[ 1304s]
[ 1304s] ======================================================================
[ 1304s] ERROR: test_pid.test_pid_gid_win32
[ 1304s] ----------------------------------------------------------------------
[ 1304s] Traceback (most recent call last):
[ 1304s] File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
[ 1304s] self.test(*self.arg)
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/tests/test_pid.py", line 308, in test_pid_gid_win32
[ 1304s] with pid.PidFile(gid=gid):
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/pid/base.py", line 239, in enter
[ 1304s] self.create()
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/pid/base.py", line 209, in create
[ 1304s] self._chown()
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/pid/posix.py", line 30, in _chown
[ 1304s] os.fchown(self.fh.fileno(), self.uid, self.gid)
[ 1304s] OSError: [Errno 1] Operation not permitted
[ 1304s] -------------------- >> begin captured logging << --------------------
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa87e9530> entering setup
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa87e9530> create pidfile: /tmp/nosetests-2.7.pid
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa87e9530> check pidfile: /tmp/nosetests-2.7.pid
[ 1304s] --------------------- >> end captured logging << ---------------------
[ 1304s]
[ 1304s] ======================================================================
[ 1304s] ERROR: test_pid.test_pid_contextdecorator
[ 1304s] ----------------------------------------------------------------------
[ 1304s] Traceback (most recent call last):
[ 1304s] File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
[ 1304s] self.test(*self.arg)
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/tests/test_pid.py", line 503, in test_pid_contextdecorator
[ 1304s] @pid.PidFile()
[ 1304s] TypeError: 'PidFile' object is not callable
[ 1304s]
[ 1304s] ======================================================================
[ 1304s] ERROR: test_pid.test_pid_contextdecorator_already_locked
[ 1304s] ----------------------------------------------------------------------
[ 1304s] Traceback (most recent call last):
[ 1304s] File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
[ 1304s] self.test(*self.arg)
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/tests/test_pid.py", line 512, in test_pid_contextdecorator_already_locked
[ 1304s] @pid.PidFile("testpiddecorator")
[ 1304s] TypeError: 'PidFile' object is not callable
[ 1304s]
[ 1304s] ======================================================================
[ 1304s] FAIL: test_pid.test_pid_pid_win32
[ 1304s] ----------------------------------------------------------------------
[ 1304s] Traceback (most recent call last):
[ 1304s] File "/usr/lib/python2.7/site-packages/nose/case.py", line 197, in runTest
[ 1304s] self.test(*self.arg)
[ 1304s] File "/home/abuild/rpmbuild/BUILD/pid-3.0.4/tests/test_pid.py", line 73, in test_pid_pid_win32
[ 1304s] assert pidtext == "", "Read '%s' from locked file on Windows with Python2" % (pidtext)
[ 1304s] AssertionError: Read '13717' from locked file on Windows with Python2
[ 1304s] -------------------- >> begin captured logging << --------------------
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa891dc80> entering setup
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa891dc80> create pidfile: /tmp/nosetests-2.7.pid
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa891dc80> check pidfile: /tmp/nosetests-2.7.pid
[ 1304s] PidFile: DEBUG: <pid.posix.PidFile object at 0xffffa891dc80> closing pidfile: /tmp/nosetests-2.7.pid
[ 1304s] --------------------- >> end captured logging << ---------------------
[ 1304s]
[ 1304s] ----------------------------------------------------------------------
[ 1304s] Ran 44 tests in 0.914s
[ 1304s]
[ 1304s] FAILED (errors=4, failures=1)
[ 1304s] error: Bad exit status from /var/tmp/rpm-tmp.VPdcO0 (%check)

评论 (2)

桐小哥 创建了任务
桐小哥 负责人设置为桐小哥
桐小哥 关联分支设置为openEuler-20.03-LTS-SP1
桐小哥 关联仓库设置为src-openEuler/python-pid
展开全部操作日志

Hey tong_1001, Welcome to openEuler Community.
All of the projects in openEuler Community are maintained by @openeuler-ci-bot.
That means the developers can comment below every pull request or issue to trigger Bot Commands.
Please follow instructions at https://gitee.com/openeuler/community/blob/master/en/sig-infrastructure/command.md to find the details.

登录 后才可以发表评论

状态
负责人
项目
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
预计工期 (小时)
参与者(2)
5329419 openeuler ci bot 1632792936
1
https://gitee.com/src-openeuler/python-pid.git
git@gitee.com:src-openeuler/python-pid.git
src-openeuler
python-pid
python-pid

搜索帮助