On 08/11/2015 09:12 PM, Cyril Hrubis wrote: > Hi! >> +tst_resm TINFO "networks with the same VLAN ID must work" >> + >> +res="TPASS" >> + >> +virt_setup "id 4094" "id 4094" >> +virt_compare_netperf || res="TFAIL" >> + >> +tst_resm $res "done" >> + >> +tst_resm TINFO "different VLAN ID shall not work together" >> +res="TPASS" >> +virt_setup "id 4093" "id 4094" >> +virt_compare_netperf && res="TFAIL" >> + >> +tst_resm $res "done" > I would rather see the test issuing one PASS/FAIL for each of the > asserting here. Why cannot we use tst_resm TPASS/TFAIL in the > virt_compare_netperf function?
We can use tst_resm there and we would need to provide one more parameter to determine was it PASS or FAIL (the expected result). It will complicate virt_compare_netperf() a bit but still should be OK. Thanks, Alexey ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list