[v18.x backport] test_runner: support using --inspect with --test
#44813
+386
−49
--inspect with --test
#44813