-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
tests: Preserve data dir from failed linearizability tests #14714
Conversation
999aafa
to
c81849c
Compare
Codecov Report
@@ Coverage Diff @@
## main #14714 +/- ##
==========================================
- Coverage 75.56% 75.44% -0.12%
==========================================
Files 457 457
Lines 37308 37308
==========================================
- Hits 28191 28148 -43
- Misses 7351 7381 +30
- Partials 1766 1779 +13
Flags with carried forward coverage won't be shown. Click here to find out more.
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
} | ||
err = os.MkdirAll(path, 0700) | ||
if err != nil { | ||
t.Error(err) |
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.
t.Error(err)
means that the test will continue to execute .
t.Error(err) | |
t.Fatal(err) |
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.
Will still want to report model not linearizable even if writing report will not work.
Please consider to use |
Signed-off-by: Marek Siarkowicz <siarkowicz@google.com>
Sure, maybe as a followup PR. I would want to first understand how looks testify addoption throughout other tests. |
c81849c
to
04caec5
Compare
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
cc @ahrtr