Skip to content

Commit

Permalink
Fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ausias-armesto committed May 22, 2024
1 parent 47eb7f3 commit 9b687c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions k6/assets/k6-test-results.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ spec:
args:
- |
cd /test-results/k6/
json_file=$(ls -1 test-execution-*.json)
json_file=$(ls -1 test-execution-*.json | sort -r | head -1)
find . -type f -name "test-execution-*.json" | grep -v ${json_file} | xargs rm
npm install handlebars
curl -s https://raw.githubusercontent.com/hoprnet/hoprd-test/main/k6/parse-results.js -o /test-results/k6/parse-results.js
node /test-results/k6/parse-results.js ${json_file} {{ environmentName }} {{ workloadName }} {{ iterations }} {{ testid }} {{ duration}}
Expand All @@ -30,7 +31,7 @@ spec:
gsutil cp /test-results/k6/test-execution-*.json gs://hoprnet-k6-staging/core-team/
gsutil cp /test-results/k6/test-execution-*.html gs://hoprnet-k6-staging/core-team/
set -x
rm /test-results/k6/*
rm /test-results/k6/test-execution-*
volumeMounts:
- name: test-results
Expand Down

0 comments on commit 9b687c3

Please sign in to comment.