From bc3a4bbe1d97467376a43af61a7ae37c8a6487f6 Mon Sep 17 00:00:00 2001 From: Nils Christian Ehmke <nie@informatik.uni-kiel.de> Date: Wed, 30 Jul 2014 16:08:15 +0200 Subject: [PATCH] Workaround for Solaris --- continuous-integration/executeRemoteMicroBenchmark.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/continuous-integration/executeRemoteMicroBenchmark.sh b/continuous-integration/executeRemoteMicroBenchmark.sh index 5b97466..52ef33d 100644 --- a/continuous-integration/executeRemoteMicroBenchmark.sh +++ b/continuous-integration/executeRemoteMicroBenchmark.sh @@ -30,6 +30,10 @@ scp ${REMOTE_NODE}:MooBench/tmp/${RESULTS_FOLDER_NAME}/results-text.csv ${RESULT # Save up to 100 results from previous benchmarks on the remote node and clean up ssh ${REMOTE_NODE} "cp MooBench/tmp/${RESULTS_FOLDER_NAME}/results.zip old-results --backup=t; exit" ssh ${REMOTE_NODE} "cd old-results; ls -A1t | sed -e '1,100d' | xargs -d '\n' rm; exit" -ssh ${REMOTE_NODE} 'mv old-results /tmp/; exit' ssh ${REMOTE_NODE} 'rm -rf MooBench; exit' -ssh ${REMOTE_NODE} 'mv /tmp/old-results .; exit' + +# Workaround for Solaris +# BACKUP_FOLDER_NAME="$(date +%Y-%m-%d-%H-%M-%S)" +# ssh ${REMOTE_NODE} "mkdir old-results/${BACKUP_FOLDER_NAME}; cp MooBench/tmp/${RESULTS_FOLDER_NAME}/results.zip old-results/${BACKUP_FOLDER_NAME}/; exit" +# ssh ${REMOTE_NODE} "cd old-results; ls -A1t | sed -e '1,100d' | xargs -d '\n' rm -rf; exit" +# ssh ${REMOTE_NODE} 'rm -rf MooBench; exit' \ No newline at end of file -- GitLab