test: fix code on report
authorAnatoly Burakov <anatoly.burakov@intel.com>
Fri, 27 Jul 2018 09:40:12 +0000 (10:40 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 31 Jul 2018 14:33:19 +0000 (16:33 +0200)
commit5a6feec6c89aa657ad9d2568379da6d71d4433c3
treeea9999163a016ee65beeea30e5225b877b2d83cd
parent9c197a2389730e0a1ad9473a5c3fb127a36d6f12
test: fix code on report

There are no reports defined for any test, so this codepath was
never triggered, but it's still wrong because it's referencing
variables that aren't there. Fix it by passing target into the
test function, and reference correct log variable.

Fixes: e2cc79b75d9f ("app: rework autotest.py")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
test/test/autotest_runner.py