diff options
author | Matthew Leeds <matthew.leeds@endlessm.com> | 2019-04-01 19:01:49 -0700 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2019-04-11 14:28:32 +0000 |
commit | dd6844a61ef7b82e656481d6ddd1389012ab3fb9 (patch) | |
tree | eac8110a9c60fe8bb1157c7d7eac1ea7fa2bf67c /tests/test-config.sh | |
parent | 077b23cc98081d66e0c959bff6351600aa0ca50f (diff) | |
download | ostree-dd6844a61ef7b82e656481d6ddd1389012ab3fb9.tar.gz |
tests: Escape periods when appropriate
Don't match any character in a regular expression when we only want to
match a period.
Closes: #1834
Approved by: rfairley
Diffstat (limited to 'tests/test-config.sh')
-rwxr-xr-x | tests/test-config.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test-config.sh b/tests/test-config.sh index 3499de7a..483cff41 100755 --- a/tests/test-config.sh +++ b/tests/test-config.sh @@ -40,7 +40,7 @@ assert_file_has_content list.txt "bare" assert_file_has_content list.txt "1" assert_file_has_content list.txt "Flathub" assert_file_has_content list.txt "true" -assert_file_has_content list.txt "http://example.com/ostree/repo/" +assert_file_has_content list.txt "http://example\.com/ostree/repo/" # Check that it errors out if too many arguments are given if ${CMD_PREFIX} ostree config --repo=repo get --group=core lock-timeout-secs extra 2>err.txt; then @@ -57,7 +57,7 @@ ${CMD_PREFIX} ostree config --repo=repo set --group='remote "org.mozilla.Firefox assert_file_has_content repo/config "bare-user-only" assert_file_has_content repo/config "Nightly Flathub" assert_file_has_content repo/config "false" -assert_file_has_content repo/config "http://example.com/ostree/" +assert_file_has_content repo/config "http://example\.com/ostree/" # Check that it errors out if too many arguments are given if ${CMD_PREFIX} ostree config --repo=repo set --group=core lock-timeout-secs 120 extra 2>err.txt; then |