Changeset 1606


Ignore:
Timestamp:
Jul 13, 2020, 3:08:46 AM (3 years ago)
Author:
Peter Johansson
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/0.10-stable/test/repo_status_test.sh

    r978 r1606  
    3535# check if the last test revision is a part of the svndigest repository
    3636status_return=`$SVN status -v ${repo}/db/revs/$rev`
     37echo "status_return:$status_return"
    3738# logic: (file does not exist) || (file exists but not in revision control)
    38 if [[ ${#status_return} -eq 0 || ${status_return:0:1} = "?" ]]; then
     39if test x"${status_return}" = x"" || echo "${status_return}" | $GREP -q '^?'; then
    3940    repository_status=0
    4041    echo "ERROR: test repository and svndigest repository are not synchronized:"
     
    5051# repository is found, or break the test repository revision 0 is
    5152# reached.
    52 while [[ ${#status_return} -eq 0 || ${status_return:0:1} = "?" ]] && [ $rev -ge 0 ]; do
     53while {test x"${status_return}" = x"" || echo "${status_return}" | $GREP -q '^?'} && test $rev -ge 0; do
    5354    echo "ERROR:    svn add test/repo/db/revs/$rev test/repo/db/revprops/$rev"
    5455    let rev--
Note: See TracChangeset for help on using the changeset viewer.