Skip to content
Snippets Groups Projects
Commit bc3a4bbe authored by Nils Christian Ehmke's avatar Nils Christian Ehmke
Browse files

Workaround for Solaris

parent af6b07fb
No related branches found
No related tags found
No related merge requests found
...@@ -30,6 +30,10 @@ scp ${REMOTE_NODE}:MooBench/tmp/${RESULTS_FOLDER_NAME}/results-text.csv ${RESULT ...@@ -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 # 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} "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} "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} '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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment