chiark / gitweb /
server/tests.at: Preserve output in `server communication' tests.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 26 May 2016 08:26:09 +0000 (09:26 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 14 May 2017 17:19:08 +0000 (18:19 +0100)
The test runs with multiple sets of party keys, and used to delete the
party directories before each run, leaving only the output from the
last.  Instead, rename the party directories when we're done.

(I'd just create the directories with the right names in advance, but
the script uses the directory names as parts of shell variable names,
and I don't want to make the directory names ugly to allow that.)

server/tests.at

index f47aae48c20284309db045d59eedd12d783825a7..4311a43459f8efa1d00b8881df8a0c71fba6fff6 100644 (file)
@@ -391,6 +391,7 @@ for k in alpha beta-new; do
     ESTABLISH([alice], [not-alice], [-key alice],
              [bob], [bob], [])
   ])
+  for p in alice bob; do rm -rf $p.$k; mv $p $p.$k; done
 done
 
 AT_CLEANUP