diff options
author | nags <nags@nags-desktop.(none)> | 2009-04-08 02:16:29 -0700 |
---|---|---|
committer | nags <nags@nags-desktop.(none)> | 2009-04-08 02:16:29 -0700 |
commit | 6b2fb834c6dc84038a323aa990ebccf9ab350f8c (patch) | |
tree | 274c258811cac621ab927f1b6b5c0d81e85d10d0 /python | |
parent | 33b29f061e0d79ec323dd6476b4ae326d1ce771a (diff) |
2009-04-08 Willie Walker <william.walker@sun.com>
* ldtp.py: LDTP should use LOGNAME instead of (or in addition to)
USER, fixes bug # 578609.
Diffstat (limited to 'python')
-rw-r--r-- | python/ChangeLog | 5 | ||||
-rw-r--r-- | python/ldtp.py | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/python/ChangeLog b/python/ChangeLog index 4727b26..05c1bca 100644 --- a/python/ChangeLog +++ b/python/ChangeLog @@ -1,3 +1,8 @@ +2009-04-08 Willie Walker <william.walker@sun.com> + + * ldtp.py: LDTP should use LOGNAME instead of (or in addition to) + USER, fixes bug # 578609. + 2009-04-08 Nagappan Alagappan <nagappan@gmail.com> * ldtp.py (generatexml): Added delay of 1 second, as there are diff --git a/python/ldtp.py b/python/ldtp.py index 5cb0a21..ca6c29d 100644 --- a/python/ldtp.py +++ b/python/ldtp.py @@ -61,7 +61,12 @@ import ldtputils from ldtplib.ldtplibutils import * _ldtpDebug = os.getenv ('LDTP_DEBUG') -_screenshotDir = _logDir = '/tmp/ldtp-%s' % os.getenv ('USER') +_userName = 'LDTP' +if os.getenv ('USER'): + _userName = os.getenv ('USER') +elif os.getenv ('LOGNAME'): + _userName = os.getenv ('LOGNAME') +_screenshotDir = _logDir = '/tmp/ldtp-%s' % _userName commands.getstatusoutput ('mkdir -p %s' % _logDir) commands.getstatusoutput ('rm -f /tmp/LDTP-XML-*') |