[LTP] [PATCH v2] route{4, 6}-rmmod: Declare variables before using them

Petr Vorel pvorel@suse.cz
Thu Sep 10 10:54:04 CEST 2020


Hi Feiyu,

> When running route4-rmmod case, it reports the following error:
> /opt/ltp/testcases/bin/route4-rmmod: line 100: lhost_module: unbound variable.

> It fails because "set -u" is used in .testcases/lib/cmdlib.sh and
> "set -u" treats unset variables and parameters as errors.

Thanks a lot for update, merged.

Kind regards,
Petr


More information about the ltp mailing list