You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#shellcheck shell=sh
Describe 'sign with unexisting key'
name_file_to_sign="dummy.txt"
path_file_sig_out="${SHELLSPEC_TMPDIR}/${name_file_to_sign}.sig"
It 'should print err with status 1 and should not create .enc file'
When call sign KEINOS '/path/to/unknown/key.pub'"$name_file_to_sign""$path_file_sig_out"
The stdout should include '署名ファイルを生成できませんでした'
The stderr should include 'No such file or directory'
The status should be failure # status is 1-255
Path file_sig="$path_file_sig_out"
The path file_sig should not be exist
End
End
- 実行結果
$ shellspec ./tests/issue31_test.shRunning: /bin/sh [sh]FExamples: 1) sign with unexisting key should print err with status 1 and should not create .enc file When call sign KEINOS /path/to/unknown/key.pub dummy.txt /tmp/dummy.txt.sig 1.1) The path file_sig should not be exist The specified path exists path: /tmp/dummy.txt.sig # tests/issue31_test.sh:13Finished in 0.37 seconds (user 0.10 seconds, sys 0.08 seconds)1 example, 1 failureFailure examples / Errors: (Listed here affect your suite's status)shellspec tests/issue31_test.sh:7 # 1) sign with unexisting key should print err with status 1 and should not create .enc file FAILED
The text was updated successfully, but these errors were encountered:
sign
コマンドで、引数のパスが間違えていても*.sig
ファイルが作成されてしまいます。(Issue #31 (comment) より)- 実行結果
The text was updated successfully, but these errors were encountered: