From: bones_was_here Date: Sun, 12 Apr 2020 21:11:24 +0000 (+1000) Subject: Use lowercase hidden temp dir for serverbench X-Git-Tag: xonotic-v0.8.5~94^2~2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=67caf9f66d215dec920020431b3414edbc042975;p=xonotic%2Fxonotic.git Use lowercase hidden temp dir for serverbench --- diff --git a/.gitignore b/.gitignore index a34881c7..8a322326 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ .idea/ /result* -/SERVERBENCH_TEMP +/.serverbench_temp diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 09f17c6c..9d338b80 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -395,14 +395,14 @@ case "$cmd" in ;; serverbench) # TODO(rpolzer): Why does :anticheat: output differ? Total game time differs? Why? - mkdir -p SERVERBENCH_TEMP - verbose "$SELF" run dedicated -noconfig -userdir SERVERBENCH_TEMP +exec serverbench.cfg |\ + mkdir -p .serverbench_temp + verbose "$SELF" run dedicated -noconfig -userdir .serverbench_temp +exec serverbench.cfg |\ tee /dev/stderr |\ grep '^:' |\ grep -v '^:gamestart:' |\ grep -v '^:anticheat:' |\ md5sum - rm -rf SERVERBENCH_TEMP + rm -rf .serverbench_temp ;; *) handled=false