Print

Print


I run into a silly problem that we should probably fix (low priority) 
because it can confuse someone in the future. Installing a stack failed
because some test programs failed in db module.  The problem was
related to afs token:
  * in the test program we are checking if credential file exists,
    and if it does, we proceed with the test, if it does not, we
    skip the test.
  * the path to credential file is ~/.lsst/
  * my home happened to be in afs and I didn't have a token, and that
    was enough to confuse this code:

credFile = os.path.expanduser(TestDbLocal.CREDFILE)
if not os.path.isfile(credFile):
     log.warning("file '%s' not found.", credFile)
else:
     unittest.main()

and it decided to go ahead and execute the test.

Any quick suggestions how to tweak?

Jacek

########################################################################
Use REPLY-ALL to reply to list

To unsubscribe from the QSERV-L list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=QSERV-L&A=1