# sconsUtils test hangs when run from scons

XMLWordPrintable

## Details

• Type: Bug
• Status: Done
• Resolution: Done
• Fix Version/s: None
• Component/s:
• Labels:
None
• Team:
Data Release Production

## Description

A hang was noticed while building master of sconsUtils using lsst-build. scons opt=3, run manually, hangs while running the new test case. Running the new test case explicitly using python tests/testAll.py does not hang. This appears to be because the test relies on the setup shell function which is not being made available when run under scons.

## Activity

Hide
Kian-Tat Lim added a comment -

Interestingly enough, buildbot managed to get through this somehow. The output of the test shows the missing setup function, but somehow it was bypassed as follows:

 tests/testAll.py   You are attempting to run "setup" which requires administrative privileges, but more information is needed in order to do so. Authenticating as "root" Password: Password: Password: . ---------------------------------------------------------------------- Ran 1 test in 1.200s   OK

Show
Kian-Tat Lim added a comment - Interestingly enough, buildbot managed to get through this somehow. The output of the test shows the missing setup function, but somehow it was bypassed as follows: tests/testAll.py   You are attempting to run "setup" which requires administrative privileges, but more information is needed in order to do so. Authenticating as "root" Password: Password: Password: . ---------------------------------------------------------------------- Ran 1 test in 1.200s   OK
Hide
Robert Lupton added a comment -

Pushed to tickets/DM-1144

Show
Robert Lupton added a comment - Pushed to tickets/ DM-1144
Hide
Russell Owen added a comment -

This looks great. Thank you for the quick fix!

Show
Russell Owen added a comment - This looks great. Thank you for the quick fix!

## People

• Assignee:
Robert Lupton
Reporter:
Kian-Tat Lim
Reviewers:
Russell Owen
Watchers:
Kian-Tat Lim, Robert Lupton, Russell Owen