From: Matthieu Moy Date: Wed, 16 Jul 2014 11:49:38 GMT Subject: Re: [PATCH v9r1 2/2] test-config: add tests for the config_set API Message-ID: In-Reply-To: <53C665A0.2060705@gmail.com> Tanay Abhra writes: > +# 'check_config get_* section.key value' verifies that the entry for > +# section.key is 'value' > +check_config () { > + if test "$1" = expect_code > + then > + expect_code="$2" && shift && shift > + else > + expect_code=0 > + fi && > + op=$1 key=$2 && shift && shift > + if test $# != 0 Broken &&-chain after shift. (No time for more review right now, but I'll have time in ~3h from now) -- Matthieu Moy http://www-verimag.imag.fr/~moy/