genrandconfig: use subprocess.check_output instead of Popen
authorArnout Vandecappelle <arnout@mind.be>
Fri, 21 Jul 2017 01:05:09 +0000 (03:05 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tue, 25 Jul 2017 20:41:57 +0000 (22:41 +0200)
commit59419cdac1af86abbd780305b33136d28f11d3ec
treea2ecff8e1c57ea15694fdb15182995ad6ef47fe4
parent86ca7a04a81a56dd22c2b9c229598be56baf0cc0
genrandconfig: use subprocess.check_output instead of Popen

Popen is more complicated and more difficult to understand.

check_output raises an exception if the exit code is non-zero, but
that's probably what we want if ldd can't be executed.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
utils/genrandconfig