]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
oe-build-perf-report-email.py: use pwd for getting user name marquiz/buildperf/scripts
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 12 Apr 2017 19:07:05 +0000 (22:07 +0300)
committerMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Wed, 12 Apr 2017 19:07:05 +0000 (22:07 +0300)
commit7a680ef60731840af44c169863ee80f9ec61e13f
treece050ffaf7c27982f7457d07e1778055038b434b
parente41c90b852167bbcb434da57b84280e855acae33
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>
scripts/contrib/oe-build-perf-report-email.py