Fix Process Start tests in outerloop on Unix.
authorEric Erhardt <eric.erhardt@microsoft.com>
Fri, 9 Feb 2018 05:02:42 +0000 (21:02 -0800)
committerEric Erhardt <eric.erhardt@microsoft.com>
Tue, 13 Feb 2018 19:17:10 +0000 (13:17 -0600)
commitfda6505eb02ddcbfd16880858901611d0ea7a68b
treea37ec2190b030a7287c0fb2534f344d1aa04515c
parent62912af57817a41bef0812cac4ff40bd0182bfbd
Fix Process Start tests in outerloop on Unix.

Get the real user name in the test process, not the child process.  The outerloop tests are run with 'sudo'.  Which means by the time we are in the child process SUDO_USER will be set to 'root', since the parent test process was run with 'sudo'.

Fixes dotnet/corefx#26675

Commit migrated from https://github.com/dotnet/corefx/commit/bca11a079c914ed971b2f300b876f89a920a0398
src/libraries/System.Diagnostics.Process/tests/ProcessTests.Unix.cs