depmod tests: fix bug in depmodes list extraction
authorStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 7 May 2011 09:49:40 +0000 (11:49 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Sat, 7 May 2011 09:49:40 +0000 (11:49 +0200)
commit90d328715bac43d0e0568d137602d7dab36c29d1
treeadcf94b8b72d69124be871735e9239442f99ac90
parent3c91fc9a36fb802e05d47308b7e0f3ecf3bcf77a
depmod tests: fix bug in depmodes list extraction

* tests/depmod-tests.sh (get_depmodes): Use `echo $all_depmodes'
instead of `... | tr "$nl" "$sp"' to strip extra whitespaces and
newlines from `$all_depmodes'.  The latter idiom with `tr' is
wrong since it gets run before `./defs' is sourced, and thus `$nl'
and `$sp' are undefined.
Bug revealad by FreeBSD tr(1) implementation, which doesn't accept
empty strings as arguments.
ChangeLog
tests/depmod-tests.sh