New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test/recipes/80-test_cms.t: Fix the "CAdES ko" test #19731
Conversation
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not.
Made urgent because this test fails on VMS. All other tests are |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Agree urgent |
@@ -800,6 +800,7 @@ subtest "CAdES ko tests\n" => sub { | |||
SKIP: { | |||
my $skip_reason = check_availability($$_[0]); | |||
skip $skip_reason, 1 if $skip_reason; | |||
1 while unlink "cades-ko.txt"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is a loop required here?
Also, doesn't this leave cades-ko.txt undeleted on the final loop? Or, maybe that doesn't matter...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's required on VMS, where files may exist in multiple generations (so cades-ko.txt;1
, cades-ko.txt;2
, ...)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding deleting all but for the final loop, you're right about that. However, the array we use has only one element. The function runner_loop
handles that better, but isn't quite suitable for this particular test because of the second negative test. I've thoughts on reworking runner_loop
, but that's overkill for this fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK with urgent
Merged to 3.1 and master branches. Thank you. |
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #19731)
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from #19731) (cherry picked from commit 20d3731)
This test had commands that assumes that runner_loop() is used to perform the tests. These tests still run fine because Unix accepts braces in file names, but other operating systems might not. Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from openssl#19731) (cherry picked from commit 20d3731)
This test had commands that assumes that runner_loop() is used to perform
the tests. These tests still run fine because Unix accepts braces in file
names, but other operating systems might not.