summaryrefslogtreecommitdiff
path: root/openembedded
diff options
context:
space:
mode:
authorAndrew McDermott <andrew.mcdermott@linaro.org>2013-09-06 11:36:31 +0100
committerAndrew McDermott <andrew.mcdermott@linaro.org>2013-09-06 11:51:38 +0100
commit99a752a95ed9870ecda40f6550c12952d3963f98 (patch)
tree98800250f3597c4596d488d34bfd41e53d022b1b /openembedded
parentf8826195348745fa3b210b3146536c31929efbe5 (diff)
jtreg: extract and attach summary results for hotspot tests
When a hotspot test completes the underlying JDK hotspot makefile deletes the intermediate files leaving only the ARCHIVE_BUNDLE.zip to be atached as a result of the test. Unfortunately this makes it hard to see at a glance what the outcome of the test is when browsing through the results in LAVA. This commit unzips JTreport/text/*.txt and attaches them as individual files for convenience. Signed-off-by: Andrew McDermott <andrew.mcdermott@linaro.org>
Diffstat (limited to 'openembedded')
-rwxr-xr-xopenembedded/scripts/jtreg-test7
1 files changed, 7 insertions, 0 deletions
diff --git a/openembedded/scripts/jtreg-test b/openembedded/scripts/jtreg-test
index a20cdd4..a19928f 100755
--- a/openembedded/scripts/jtreg-test
+++ b/openembedded/scripts/jtreg-test
@@ -73,10 +73,17 @@ if [ -n "$TESTDIRS" ]; then
zip --quiet -d $to/ARCHIVE_BUNDLE.zip 'JTwork/classes/*'
mv $to/ARCHIVE_BUNDLE.zip $to/${test_to_run}-ARCHIVE_BUNDLE.zip
lava-test-case-attach $test_to_run $to/${test_to_run}-ARCHIVE_BUNDLE.zip
+ pushd $PWD
+ cd $to
+ unzip -x -o $to/${test_to_run}-ARCHIVE_BUNDLE.zip 'JTreport/text/*.txt'
shopt -s nullglob
for i in $to/JTwork/scratch/hs*.log; do
lava-test-case-attach $test_to_run $i text/plain
done
+ for i in JTreport/text/*.txt; do
+ lava-test-case-attach $test_to_run $i text/plain
+ done
+ popd
else
lava-test-case $test_to_run \
--shell \