faultspaceplot: add sanity check
faultspaceplot.sh now fails gracefully if the requested variant/benchmark combination does not exist in the database. Change-Id: Ied3b5a0e72cc5ae8e6ce352b65486f15bb13576b
This commit is contained in:
@ -60,6 +60,13 @@ $MYSQL <<EOT > $RAWCSV
|
|||||||
AND t.accesstype = 'R';
|
AND t.accesstype = 'R';
|
||||||
EOT
|
EOT
|
||||||
|
|
||||||
|
# sanity check
|
||||||
|
if [ $(wc -l < $RAWCSV) -le 1 ]; then
|
||||||
|
rm "$RAWCSV"
|
||||||
|
echo "no result data found for variant/benchmark $VARIANT/$BENCHMARK." >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
# compact data
|
# compact data
|
||||||
echo "compacting data.."
|
echo "compacting data.."
|
||||||
COMPACTCSV=$(mktemp)
|
COMPACTCSV=$(mktemp)
|
||||||
|
|||||||
Reference in New Issue
Block a user