]> git.xonotic.org Git - xonotic/xonotic.git/commitdiff
Improve serverbench command WRT #273
authorbones_was_here <bones_was_here@yahoo.com.au>
Wed, 2 Oct 2019 17:34:22 +0000 (03:34 +1000)
committerbones_was_here <bones_was_here@yahoo.com.au>
Wed, 2 Oct 2019 17:34:22 +0000 (03:34 +1000)
.gitignore
misc/tools/all/xonotic.subr

index ab43afbbdc6d7046ab40283c8bf70dd584cfea1e..a34881c7648dcb9cbeb92cb13c93367c006512de 100644 (file)
@@ -16,3 +16,4 @@
 
 .idea/
 /result*
+/SERVERBENCH_TEMP
index 9bc4cd6ea1714c21791078860865dd12d215ed02..dabd1fd4ddcf590a2c0b7b8f7ba148b96b250f27 100644 (file)
@@ -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