remove diagnostic output from tests (#329)

pull/332/head
Josh Rabinowitz 5 years ago committed by GitHub
parent f820bd39e0
commit e34248fdc1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -4,6 +4,7 @@
- Fix link to homebrew's git-secret in README.md (#310)
- Update CHANGELOG.md to mention fix for #281 in v0.2.5 (#311)
- Remove diagnostic output from test results (#324)
- Remove un-needed redirection in 'reveal' (#325)
- Remove unused functions from _git_secret_tools.sh

@ -26,7 +26,7 @@ function teardown {
run git secret hide
# this will fail, because we're using an expired key
echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
#echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
# output will look like 'abort: problem encrypting file with gpg: exit code 2: space file'
#echo "# status of hide: $status" >&3
@ -39,7 +39,7 @@ function teardown {
[ "$status" -eq 0 ]
# diag output for bats-core
echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
#echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
# output should look like 'abort: problem encrypting file with gpg: exit code 2: space file'
#echo "# $BATS_TEST_DESCRIPTION: $status" >&3
@ -57,7 +57,7 @@ function teardown {
run git secret whoknows -l
[ "$status" -eq 0 ]
echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
#echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
# Now test the output, both users should be present:
[[ "$output" == *"$TEST_DEFAULT_USER (expires: never)"* ]]

@ -145,7 +145,7 @@ function teardown {
path_mappings=$(_get_secrets_dir_paths_mapping)
run git secret hide -m
echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
#echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
# Command must execute normally:
[ "$status" -eq 0 ]

@ -35,7 +35,7 @@ function teardown {
run git secret whoknows -l
[ "$status" -eq 0 ]
echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
#echo "$output" | sed "s/^/# '$BATS_TEST_DESCRIPTION' output: /" >&3
# output should look like 'abort: problem encrypting file with gpg: exit code 2: space file'
#echo "# '$BATS_TEST_DESCRIPTION' status: $status" >&3

Loading…
Cancel
Save