From 8f13be1f7cfa0c37613d120fee1c7a0885d9c3b0 Mon Sep 17 00:00:00 2001 From: project-repo Date: Mon, 20 Feb 2023 22:30:13 +0100 Subject: [PATCH] Fix arguments test --- test/arguments | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/arguments b/test/arguments index 04800fc..d858069 100644 --- a/test/arguments +++ b/test/arguments @@ -14,9 +14,9 @@ readonly helptext="Usage: ./cagebreak [OPTIONS] -s Show information about the current setup and exit -v Show the version number and exit" -readonly basicheadless="Cagebreak $1 is running on Wayland display wayland-1 +readonly basicheadless="Cagebreak ${1} is running on Wayland display wayland-. Outputs: - * HEADLESS-1 + \\* HEADLESS-1 Inputs:" RESULT=0 @@ -51,7 +51,7 @@ sync [[ $(./cagebreak -h) = "$helptext" ]] || RESULT=1 # check -s option -[[ $(WLR_BACKENDS=headless ./cagebreak -s) = "$basicheadless" ]] || RESULT=1 +[[ $(WLR_BACKENDS=headless ./cagebreak -s) =~ ${basicheadless} ]] || RESULT=1 # check -v option