Details
-
Type:
Story
-
Status: Invalid
-
Resolution: Done
-
Fix Version/s: None
-
Component/s: meas_astrom
-
Labels:
Description
Unit test testOpenFiles.py failed on my Ubuntu 14.04 system. The subroutine getOpenFiles required /usr/sbin/lsof, which was not on my system. There was a /usr/bin/lsof, so I was able to get the unit test to work by adding a soft link.
Attachments
Issue Links
- is triggered by
-
DM-7288 Port meas_astrom to python 3
- Done
Thanks for the report. Turns out that the getOpenFiles function in that test was not being called until we decided to "fix" the test to take open files into account. The code had been added in 2013 by Paul Price but was there for debugging purposes rather than as part of the test. Now that we are using it we are realizing that lsof is not always in the same place.
I think the real fix is to rewrite getOpenFiles to use psutil as was done in the utils package as part of
DM-5561.