tests: allow to overide sudo and test before report

Change-Id: I2c7f20f42d236e823576499aab51812d6350405b
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>