avoid flakiness in trigger test under valgrind

also try to improve diagnostics
disable --trace and env dumping on travis

Found the root cause, don't need so much output now
tidy up valgrind xml parsing in the test harness