X-Git-Url: https://plomlompom.com/repos/feed.xml?a=blobdiff_plain;f=test_server.sh;h=83dc5deb8a4bccfccf601bbe63db948bb6a5e6c8;hb=ed564b0c471df71c9623316c7bfbf06f013e2030;hp=46e5201fa324f495315cd678c7aaf6253a0b363c;hpb=7e533c6869a8ce8263f1f6eb6808d323472bb4b4;p=plomrogue diff --git a/test_server.sh b/test_server.sh index 46e5201..83dc5de 100755 --- a/test_server.sh +++ b/test_server.sh @@ -2,7 +2,7 @@ cp ./testing/start _test echo "Starting server on save file '_test' copied from ./testing/start." -python3 -m cProfile -o ./testing/cProfile roguelike-server -l _test > ./testing/log 2>&1 & +python3 -m cProfile -o ./testing/cProfile roguelike-server -l _test & echo "Waiting until ./server/in is ready for writing." while [ ! -e ./server/in ] @@ -21,8 +21,7 @@ done echo "Server has quit. Here's the diff of final '_test' to reference save file" echo "./testing/ref_end (TEST WENT WELL IF NO LINES FOLLOW):" -diff _test testing/ref_end > ./testing/diff -cat ./testing/diff +mv _test testing/last_end +diff testing/last_end testing/ref_end -rm _test rm record__test