proptest: Use util_open()
authorThierry Reding <treding@nvidia.com>
Wed, 9 Dec 2015 17:37:47 +0000 (18:37 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Fri, 18 Dec 2015 17:44:18 +0000 (17:44 +0000)
commit6223481b8de901b5356afdef538726f1fb77bfd1
treef75883e33d75084c0b2892f616ab2377c40804c5
parentc26266fcd082a8b67d1f32f5e5351cfa82c7accb
proptest: Use util_open()

Use the new util_open() helper instead of open-coding the method for
finding a usable device. While at it, make the command-line interface
more consistent with that of modetest by adding the -D and -M options.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
tests/proptest/proptest.c