Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test failed while 'make' #574

Closed
karthikrev opened this issue Jan 8, 2015 · 2 comments
Closed

Test failed while 'make' #574

karthikrev opened this issue Jan 8, 2015 · 2 comments

Comments

@karthikrev
Copy link

[root@saltserver psutil]# whoami
root
[root@saltserver psutil]# uname -a
Linux saltserver 2.6.32-358.23.2.el6.x86_64 #1 SMP Wed Oct 16 18:37:12 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[root@saltserver psutil]# cat /etc/redhat-release
CentOS release 6.4 (Final)
[root@saltserver psutil]#

....
test_vmem_free (_linux.LinuxSpecificTestCase) ... ok
test_vmem_total (_linux.LinuxSpecificTestCase) ... ok
test_vmem_used (_linux.LinuxSpecificTestCase) ... ok

======================================================================
ERROR: test_connections_unix (__main__.TestProcess)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 1765, in test_connections_unix
    check(SOCK_STREAM)
  File "test/test_psutil.py", line 1751, in check
    sock.bind(TESTFN)
  File "<string>", line 1, in bind
error: [Errno 1] Operation not permitted

======================================================================
ERROR: test_zombie_process (__main__.TestProcess)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "test/test_psutil.py", line 2054, in test_zombie_process
    sock.bind(TESTFN)
  File "<string>", line 1, in bind
error: [Errno 1] Operation not permitted

----------------------------------------------------------------------
Ran 189 tests in 4.745s

FAILED (errors=2, skipped=5)
make: *** [test] Error 1
@giampaolo
Copy link
Owner

Mmmm... do you have write permission against that directory (can you "touch file"?)?

@karthikrev
Copy link
Author

HI,
Its my mistake, I am in a shared directory between guest and host on a VM created by vagrant
[root@saltserver psutil]# pwd
/vagrant/psutil

and hence the ownership is not root but vagrant:vagrant
[root@saltserver psutil]# chown root:root CREDITS
[root@saltserver psutil]# ls -l
drwxr-xr-x 1 vagrant vagrant 170 Jan 9 2015 build
-rw-r--r-- 1 vagrant vagrant 4210 Jan 9 17:56 CREDITS
drwxr-xr-x 1 vagrant vagrant 102 Jan 9 2015 dist

cp ../psutil /tmp and make works good...

Ran 189 tests in 3.956s

OK (skipped=5)
[root@saltserver psutil]# pwd
/tmp/psutil

Sorry for this ..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants