[igt-dev] [PATCH i-g-t] igt_command_line.sh: Abort if run as root

Andi Shyti andi.shyti at intel.com
Tue Feb 12 23:58:02 UTC 2019


Hi Arek,

On Tue, Feb 12, 2019 at 03:53:17PM +0200, Arkadiusz Hiler wrote:
> `ninja test` invokes igt_command_line.sh for each test binary to check
> the behavior of some of the switches. One of the verified things is that
> the test exists with non-zero status when requesting invalid subtest.
> 
> `--run-subtest` results in igt_fixtures being executed - this fiddles
> with the device and sysfs knobs.
> 
> Let's exit early, if we are root, to save people form unintentional
> side-effects and strange failures.
> 
> Cc: Petri Latvala <petri.latvala at intel.com>
> Cc: Andi Shyti <andi.shyti at intel.com>
> Signed-off-by: Arkadiusz Hiler <arkadiusz.hiler at intel.com>

Reviewed-by: Andi Shyti <andi.shyti at intel.com>

Thanks,
Andi


More information about the igt-dev mailing list