Skip to content

Commit

Permalink
tests: Fix PKIDIR checks in AT_SKIP.
Browse files Browse the repository at this point in the history
In Autotest, [xyz] just expands to xyz.  To get [xyz] in output, we
need [[xyz]] in input.

I spotted this based on "expr" reporting an error in testsuite output.

Signed-off-by: Ben Pfaff <[email protected]>
Acked-by: Han Zhou <[email protected]>
  • Loading branch information
blp committed Jun 2, 2021
1 parent 5da031d commit 3012710
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/ovsdb-server.at
Original file line number Diff line number Diff line change
Expand Up @@ -548,8 +548,8 @@ AT_SKIP_IF([test "$HAVE_OPENSSL" = no])
# msys on Windows does not convert the path style automatically.
# So, do that forcefully with a 'pwd -W' (called through pwd() function).
PKIDIR="$(cd $abs_top_builddir/tests && pwd)"
AT_SKIP_IF([expr "$PKIDIR" : ".*[ '\"
\\]"])
AT_SKIP_IF([expr "$PKIDIR" : ".*[[ '\"
\\]]"])
AT_DATA([schema],
[[{"name": "mydb",
"tables": {
Expand Down

0 comments on commit 3012710

Please sign in to comment.