kmstest: Use util_open()
authorStefan Agner <stefan@agner.ch>
Sun, 20 Dec 2015 05:52:58 +0000 (21:52 -0800)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 26 Jan 2016 21:45:46 +0000 (21:45 +0000)
commit0caf58a6cb82327a3f6a53f05dea8e02f1412a05
tree0d7ce05bd8183982c451600fd9c5b5508255eb87
parent798022b61c58d945f9027c823a188dcedecd3d06
kmstest: 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: Stefan Agner <stefan@agner.ch>
v2: correctly use util_open() - swap device, module
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
tests/kmstest/Makefile.am
tests/kmstest/main.c