##// END OF EJS Templates
tests: fix hooks in `test-transaction-rollback-on-revlog-split.t` for Windows...
Matt Harbison -
r52891:629ecced default
parent child Browse files
Show More
@@ -58,11 +58,11 Helper extension to intercept renames an
58 58 > def _wait_post_load(orig, self, *args, **kwargs):
59 59 > wait = b'data/file' in self.radix
60 60 > if wait:
61 > testing.wait_file(b"$TESTTMP/writer-revlog-split")
61 > testing.wait_file(b"$TESTTMP_FORWARD_SLASH/writer-revlog-split")
62 62 > r = orig(self, *args, **kwargs)
63 63 > if wait:
64 > testing.write_file(b"$TESTTMP/reader-index-read")
65 > testing.wait_file(b"$TESTTMP/writer-revlog-unsplit")
64 > testing.write_file(b"$TESTTMP_FORWARD_SLASH/reader-index-read")
65 > testing.wait_file(b"$TESTTMP_FORWARD_SLASH/writer-revlog-unsplit")
66 66 > return r
67 67 >
68 68 > def extsetup(ui):
@@ -441,7 +441,7 split and end reading (the data) after t
441 441 $ cd troffset-computation-race
442 442 $ cat > .hg/hgrc <<EOF
443 443 > [hooks]
444 > pretxnchangegroup=$RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/reader-index-read $TESTTMP/writer-revlog-split
444 > pretxnchangegroup=sh "$RUNTESTDIR/testlib/wait-on-file" 5 $TESTTMP/reader-index-read $TESTTMP/writer-revlog-split
445 445 > pretxnclose = false
446 446 > EOF
447 447
@@ -485,8 +485,8 We checks that hooks properly see the in
485 485 $ cd troffset-computation-hooks
486 486 $ cat > .hg/hgrc <<EOF
487 487 > [hooks]
488 > pretxnclose.01-echo = hg cat -r 'max(all())' file | f --size
489 > pretxnclose.02-echo = $RUNTESTDIR/testlib/wait-on-file 5 $TESTTMP/hook-done $TESTTMP/hook-tr-ready
488 > pretxnclose.01-echo = hg cat -r "max(all())" file | "$PYTHON" "$RUNTESTDIR/f" --size
489 > pretxnclose.02-echo = sh "$RUNTESTDIR/testlib/wait-on-file" 5 $TESTTMP/hook-done $TESTTMP/hook-tr-ready
490 490 > pretxnclose.03-abort = false
491 491 > EOF
492 492
General Comments 0
You need to be logged in to leave comments. Login now