Skip to content
Snippets Groups Projects
Commit afb86ee9 authored by Katsunori FUJIWARA's avatar Katsunori FUJIWARA
Browse files

tests: dump journal file by python script instead of sed for portability

Before this patch, test-repair-strip.t fails on Solaris, because of
"sed" on it doesn't work as expected if input contains null ('\0')
character.
parent 8f244b75
No related branches found
No related tags found
No related merge requests found
#require unix-permissions no-root
$ cat > $TESTTMP/dumpjournal.py <<EOF
> import sys
> for entry in sys.stdin.read().split('\n'):
> if entry:
> print entry.split('\x00')[0]
> EOF
$ echo "[extensions]" >> $HGRCPATH
$ echo "mq=">> $HGRCPATH
......@@ -14,7 +21,7 @@
> hg verify
> echo % journal contents
> if [ -f .hg/store/journal ]; then
> sed -e 's/\.i[^\n]*/\.i/' .hg/store/journal
> cat .hg/store/journal | python $TESTTMP/dumpjournal.py
> else
> echo "(no journal)"
> fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment