tradefed: fix the problem for the removal of non xml supported characters
need to use the last position for next time
when the matched pattern removed.
otherwise, the next pattern just after the pattern matched this time
might be ignored. Like this following example:
test_helper.cc:55 [0m [31mConsumer unexpectedly disconnected from the service (errno: 0, Success)[0m
after the first removal:
test_helper.cc:55 [0m [31mConsumer unexpectedly disconnected from the service (errno: 0, Success)[0m
we still need to search from the position after "test_helper.cc:55 ".
Signed-off-by: Yongqin Liu <yongqin.liu@linaro.org>
2 files changed