From: bones_was_here Date: Wed, 2 Oct 2019 17:34:22 +0000 (+1000) Subject: Improve serverbench command WRT #273 X-Git-Tag: xonotic-v0.8.5~94^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=acea210d59683c280c1e9b1cff2c1358f040e4fc;p=xonotic%2Fxonotic.git Improve serverbench command WRT #273 --- diff --git a/.gitignore b/.gitignore index ab43afbb..a34881c7 100644 --- a/.gitignore +++ b/.gitignore @@ -16,3 +16,4 @@ .idea/ /result* +/SERVERBENCH_TEMP diff --git a/misc/tools/all/xonotic.subr b/misc/tools/all/xonotic.subr index 9bc4cd6e..dabd1fd4 100644 --- a/misc/tools/all/xonotic.subr +++ b/misc/tools/all/xonotic.subr @@ -395,12 +395,14 @@ case "$cmd" in ;; serverbench) # TODO(rpolzer): Why does :anticheat: output differ? Total game time differs? Why? - verbose "$SELF" run "$@" -noconfig -nohome +exec serverbench.cfg |\ + mkdir 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 ;; *) handled=false