Improve bash test target log by:
* Adding a timestamp above when a test is run so logs are easier to chase down
* Insert new line after test log output to avoid cases where the test output doesn't add one.
PiperOrigin-RevId: 316561771
diff --git a/src/test/shell/unittest.bash b/src/test/shell/unittest.bash
index 6b9e8e4..3894e41 100644
--- a/src/test/shell/unittest.bash
+++ b/src/test/shell/unittest.bash
@@ -683,6 +683,7 @@
total=$(($total + 1))
if [[ "$TEST_verbose" == "true" ]]; then
+ date >&2
__pad $TEST_name '*' >&2
fi
@@ -739,6 +740,10 @@
local green='\033[0;32m'
local no_color='\033[0m'
+ if [[ "$TEST_verbose" == "true" ]]; then
+ echo >&2
+ fi
+
if [[ "$TEST_passed" == "true" ]]; then
if [[ "$TEST_verbose" == "true" ]]; then
echo -e "${green}PASSED${no_color}: $TEST_name" >&2