From 99a752a95ed9870ecda40f6550c12952d3963f98 Mon Sep 17 00:00:00 2001 From: Andrew McDermott Date: Fri, 6 Sep 2013 11:36:31 +0100 Subject: 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 --- openembedded/scripts/jtreg-test | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'openembedded/scripts') 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 \ -- cgit v1.2.3