Why my AT_CHECK() can't work?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm using autotest to test ovs, and I write a new *.at file using only one
AT_CHECK sentence like this:

AT_CHECK([ovs-appctl dpdk/bond-show dpdkb2], [0], [stdout])
> AT_CHECK([[sed '/ACTIVE/p' stdout | head -4]], [0], [[LACP actor_state
> ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>      partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
> LACP actor_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>      partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING]])


but this *.at file failed, log is:

789. netdev-dpdk.at:23: testing netdev-dpdk - dpdk/bond-show ...
> ./netdev-dpdk.at:27: ovs-appctl dpdk/bond-show dpdkb2
> stdout:
> ---- dpdkb2 ----
> bond_mode: 4
> slave 0:
> active
> mac address ec:f4:bb:e1:1a:40
> Link Up - speed 10000 Mbps - full-duplex
> LACP actor_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>      partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>  rx pkts=268449, bytes=16502449, mcasts=0, drop=0, errs=0, nombufs=0
>  tx pkts=261, bytes=32020, errs=0
> slave 1:
> active
> mac address ec:f4:bb:e1:1a:42
> Link Up - speed 10000 Mbps - full-duplex
> LACP actor_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>      partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>  rx pkts=296190, bytes=17934647, mcasts=0, drop=0, errs=0, nombufs=0
>  tx pkts=254, bytes=31496, errs=0
> ./netdev-dpdk.at:28: sed '/ACTIVE/p' stdout | head -4
> --- -   2017-08-09 16:59:18.802810195 +0800
> +++ /home/gangyewei-3/mvs/mvs/tests/testsuite.dir/at-groups/789/stdout
>  2017-08-09 16:59:18.801176471 +0800
> @@ -1,4 +1,5 @@
> -LACP actor_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
> -     partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
> -LACP actor_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
> -     partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
> +---- dpdkb2 ----
> +bond_mode: 4
> +
> +slave 0:
> +
> 789. netdev-dpdk.at:23: 789. netdev-dpdk - dpdk/bond-show (
> netdev-dpdk.at:23): FAILED (netdev-dpdk.at:28)


1. I don't know what "+" "-" means, and why there are "+" and "-"?
2. I run `ovs-appctl dpdk/bond-show dpdkb2 | sed -n '/ACTIVE/p' | head -4`,
result is:

> LACP actor_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>      partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
> LACP actor_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING
>      partner_state ACTIVE AGGREGATION SYNC COLLECTING DISTRIBUTING

That's exactly what I matched in AT_CHECK, why it fails?

Autotest is really hard to use...
_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
https://lists.gnu.org/mailman/listinfo/autoconf



[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux