From f0f581fce2756840252b9335a4906e692ada1988 Mon Sep 17 00:00:00 2001 From: Ayana Yokota Date: Wed, 7 Dec 2022 11:42:03 -0800 Subject: [PATCH] Fix failed tests (partially): Ignore case when letters are created by libraries (#22) * Ignore case if letters are created by libraries * Turn off nocasematch every test is done --- bats/tests/pyrsia_cli.bats | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/bats/tests/pyrsia_cli.bats b/bats/tests/pyrsia_cli.bats index dd5e47b..b78ede9 100644 --- a/bats/tests/pyrsia_cli.bats +++ b/bats/tests/pyrsia_cli.bats @@ -24,23 +24,26 @@ setup() { } teardown() { + shopt -u nocasematch run "$PYRSIA_CLI" config edit --host localhost --port 7888 --diskspace "10 GB" } @test "Testing 'pyrsia help' CLI, check if the help is shown." { + # ignore case in this @test + shopt -s nocasematch # run pyrsia help run "$PYRSIA_CLI" help # check if pyrsia help is shown - assert_output --partial 'USAGE:' - assert_output --partial 'OPTIONS:' - assert_output --partial 'SUBCOMMANDS:' + assert_output --partial 'Usage:' + assert_output --partial 'Commands:' + assert_output --partial 'Options:' # run pyrsia help run "$PYRSIA_CLI" -h # check if pyrsia help is shown - assert_output --partial 'USAGE:' - assert_output --partial 'OPTIONS:' - assert_output --partial 'SUBCOMMANDS:' + assert_output --partial 'Usage:' + assert_output --partial 'Commands:' + assert_output --partial 'Options:' } @test "Testing 'pyrsia ping' CLI, check if the node is up and reachable." {