Code review comment for lp:~lool/linaro-image-tools/testsuite-when-installed

Revision history for this message
Loïc Minier (lool) wrote :

(Thanks for adding the dep on the sudo branch; I failed to push the sudo branch after merging it locally -- it's merged in trunk now)

The isbas(__file__) test is just a test for whether or not we're running from bzr.

Note that __file__ is the possibly relative pathname of the current module, so of hwpack.py or utils.py.

The assumptions are:
* if you're running from a checkout, __file__ is relative, you're in the top directory and commands are in the current directory
* if you're not running from a checkout, __file__ is absolute, commands are in the PATH

« Back to merge proposal