Skip to content

Commit

Permalink
kernbench: Limit what data is cleaned
Browse files Browse the repository at this point in the history
Delete the specific test directory instead of the whole SHELLPACK_DATA
directory.

Signed-off-by: Mel Gorman <mgorman@techsingularity.net>
  • Loading branch information
gormanm committed Feb 13, 2025
1 parent e6d136c commit c16002a
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions shellpack_src/src/kernbench/kernbench-bench
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ cd $SHELLPACK_DATA/linux-$VERSION || die "Unexpected layout"
grep elapsed $LOGDIR_RESULTS/kernbench-${NR_THREADS}-$ITERATION.time``
recover_rc
if [ $? -ne 0 ]; then
die Failed to run kernbench
die "Failed to run kernbench"
fi

# cleanup
Expand All @@ -90,10 +90,7 @@ cd $SHELLPACK_DATA/linux-$VERSION || die "Unexpected layout"
###SHELLPACK threads_powertwo_end

# Cleanup
rm -rf $SHELLPACK_DATA/*

# clean up the tree to save space
popd > /dev/null
rm -rf $TMPDIR/kernbench
cd /
rm -rf $SHELLPACK_DATA/linux-$VERSION

exit $SHELLPACK_SUCCESS

0 comments on commit c16002a

Please sign in to comment.