]> code.ossystems Code Review - openembedded-core.git/commit
oe-build-perf-report-email.py: use pwd for getting user name
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 12 Apr 2017 19:17:32 +0000 (22:17 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 12 Apr 2017 22:55:53 +0000 (23:55 +0100)
commit66b7f495bb000c043ae24176dcdec0cb087eeecf
tree47e109187f58019b94e3644d1a6bdf968af1c90f
parent0c9b981e88c76da316e76f17e6da3a03b87c5008
oe-build-perf-report-email.py: use pwd for getting user name

Use pwd data instead of os.getlogin() to get the username for fallback
email address. os.getlogin() basically returns the name of the user
logged in on the controlling terminal of the process and raises an
exception on some systems if the process does not have a controlling
terminal - when executed from a cron script, for example.

Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/contrib/oe-build-perf-report-email.py