#534 closed defect (fixed)

repo_status_test fails with dash

Reported by: Peter Johansson Owned by: Jari Häkkinen
Priority: major Milestone: svndigest 0.10.4
Component: test Version: 0.10.3
Keywords: Cc:


I get the following log:

=== running ./repo_status_test.sh ===
+ set -e
+ repository_status=1
+ cat /home/peter/src/svndigest-0.10.x/test/repo/db/current
+ rev=71 31 4
+ rev=71
+ svn --non-interactive status -v /home/peter/src/svndigest-0.10.x/test/repo/db/revs/71
+ status_return=              1605     1449 peter        /home/peter/src/svndigest-0.10.x/test/repo/db/revs/71
+ [[ 94 -eq 0
./repo_status_test.sh: 38: [[: not found
./repo_status_test.sh: 38: Bad substitution
FAIL repo_status_test.sh (exit status: 2)

I have the same output on a different system where the test works - with svn 1.7 and the same format in the output. The crucial difference seems to be that ubunbtu uses dash instead of bash.

Change History (1)

comment:1 Changed 13 months ago by Peter Johansson

Resolution: fixed
Status: newclosed

In 1606:

avoid bashism in test code; also replace [TEST] with test TEST (for readability). fixes #534

Note: See TracTickets for help on using tickets.