From: Petr Vorel Date: Wed, 18 Apr 2018 16:13:56 +0200 Subject: [LTP] [PATCH 2/2] network/in6_02: Don't use default value for LHOST_IFACES In-Reply-To: References: <20180417124207.4561-1-pvorel@suse.cz> <20180417124207.4561-2-pvorel@suse.cz> Message-ID: <20180418141356.fuqueijmwjf2mvew@dell5510> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ltp@lists.linux.it Hi Alexey, > On 04/17/2018 03:42 PM, Petr Vorel wrote: > > in6_02 can be test without help of network.sh. In that case LHOST_IFACES > > is not defined and "eth0" is used as default value. This can cause > > failures. > I think the fix should be before the conversion to the new API, otherwise > it unnecessary depends on it. Agree, I'll fix it. ... > > for (i = 0; i < ARRAY_SIZE(test_case); ++i) { > > + if (test_case[i].name == NULL) > > + continue; > What about using TCONF if it skips the test-case because > LHOST_IFACE is not defined? I wanted to keep at least testing of if_nametoindex("lo"). Would be overkill in case of TCONF to create in6_02.sh which would just load tst_net.sh? I don't like the fact, that network C tests depend on being run via network.sh (unlike shell network tests). > Thanks, > Alexey Kind regards, Petr