|
Harald Hoyer |
9d5d75 |
From f8cad00948c10107f84b9fcba812589a256f8f80 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
9d5d75 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
9d5d75 |
Date: Thu, 16 Aug 2018 11:47:21 +0200
|
|
Harald Hoyer |
9d5d75 |
Subject: [PATCH] test: for V=2 tail only the last MB of logs
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
---
|
|
Harald Hoyer |
9d5d75 |
test/test-functions | 2 +-
|
|
Harald Hoyer |
9d5d75 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
9d5d75 |
|
|
Harald Hoyer |
9d5d75 |
diff --git a/test/test-functions b/test/test-functions
|
|
Harald Hoyer |
9d5d75 |
index 0c9d88c8..6d7f418b 100644
|
|
Harald Hoyer |
9d5d75 |
--- a/test/test-functions
|
|
Harald Hoyer |
9d5d75 |
+++ b/test/test-functions
|
|
Harald Hoyer |
9d5d75 |
@@ -104,7 +104,7 @@ while (($# > 0)); do
|
|
Harald Hoyer |
9d5d75 |
else
|
|
Harald Hoyer |
9d5d75 |
echo -e "TEST: $TEST_DESCRIPTION " $COLOR_FAILURE "[FAILED]" $COLOR_NORMAL
|
|
Harald Hoyer |
9d5d75 |
if [ "$V" == "2" ]; then
|
|
Harald Hoyer |
9d5d75 |
- cat $(pwd)/server${TEST_RUN_ID:+-$TEST_RUN_ID}.log $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
|
|
Harald Hoyer |
9d5d75 |
+ tail -c 1048576 $(pwd)/server${TEST_RUN_ID:+-$TEST_RUN_ID}.log $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log
|
|
Harald Hoyer |
9d5d75 |
echo -e "TEST: $TEST_DESCRIPTION " $COLOR_FAILURE "[FAILED]" $COLOR_NORMAL
|
|
Harald Hoyer |
9d5d75 |
else
|
|
Harald Hoyer |
9d5d75 |
echo "see $(pwd)/test${TEST_RUN_ID:+-$TEST_RUN_ID}.log"
|
|
Harald Hoyer |
9d5d75 |
|