Fixed. Ash/Dash don't support ERR traps, so I instead did this:
set +e
output=$(getopt -o '' -l $options -- "$@")
errout=$(getopt -o '' -l $options -- "$@" 2>&1 >/dev/null)
set -e
if [[ -n "$errout" ]]; then
warn_getopt $type
Also, I added a "reference" file for kickstart that lists all commands
with all command options. By doing
$ ./test-kickseed tests/full-full-06-2014.ks
we can see which kickstart options are not currently supported, as they will
print out "LOG" messages. It's
not exactly test driven dev, but
** Branch linked: lp:~hamiltont-x/kickseed/kickseed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1331814
Title:
Warning messages for handlers are never called
To manage notifications about this bu