Commit 7fe05515 authored by Cecylia Bocovich's avatar Cecylia Bocovich
Browse files

Compress data after test

parent 780f6ded
docker/bridge_lines.txt docker/bridge_lines.txt
stun-test/stun-test stun-test/stun-test
log/
...@@ -11,7 +11,8 @@ if ! [[ "$CASE" =~ ^(obfs4|snowflake)$ ]]; then ...@@ -11,7 +11,8 @@ if ! [[ "$CASE" =~ ^(obfs4|snowflake)$ ]]; then
fi fi
dirname="$PWD" dirname="$PWD"
logdirname="log/$CASE/$SITE/$(date -u +%Y%m%d-%H%M)" date=$(date -u +%Y%m%d-%H%M)
logdirname="log/$CASE/$SITE/$date"
mkdir -p "$logdirname" mkdir -p "$logdirname"
cd "$logdirname" cd "$logdirname"
...@@ -26,3 +27,6 @@ case $CASE in ...@@ -26,3 +27,6 @@ case $CASE in
"$dirname/snowflaketest" "$dirname/snowflaketest"
;; ;;
esac esac
tar -czvf log/$CASE/$SITE/$date.tar.gz log/$CASE/$SITE/$date
rm -rf log/$CASE/$SITE/$date
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment