[ovs-dev] [PATCH] tests: Fix PKIDIR checks in AT_SKIP.

Ben Pfaff blp at ovn.org
Tue Jun 1 18:42:15 UTC 2021


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 <blp at ovn.org>
---
 tests/ovsdb-server.at | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/ovsdb-server.at b/tests/ovsdb-server.at
index 926abce3a359..0badafa3291d 100644
--- a/tests/ovsdb-server.at
+++ b/tests/ovsdb-server.at
@@ -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": {
-- 
2.31.1



More information about the dev mailing list