Skip to content

Commit 87e3515

Browse files
committed
temp: add always and raise if finished
Signed-off-by: Ulysse Buonomo <[email protected]>
1 parent 2b2b34c commit 87e3515

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ jobs:
135135
# AR_LOG: "on"
136136
RAILS_MINITEST_PLUGIN: "1" # Make sure that we use the minitest plugin for profiling.
137137
- name: Archive culprits list
138+
if: always()
138139
uses: actions/upload-artifact@v4
139140
with:
140141
name: culprits-${{ matrix.number }}-${{ github.run_started_at }}.txt

test/cases/helper_cockroachdb.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,20 +120,20 @@ module ListTestsBefore
120120
module_function
121121

122122
def teardown
123-
p instance_variable_names
124123
return unless @@before_the_test
125124

126125
if name == "test_create_with_query_cache"
127126
@@before_the_test = false
128127
@@passed = passed?
128+
raise Interrupt
129129
else
130130
@@tests_before.push name
131131
end
132132
end
133133

134134
def after_run
135135
is = @@passed ? "innocent" : "culprit"
136-
File.write("tmp/culprits.txt", @@tests_before.map{"#{_1} #{is}"}.join("\n"))
136+
File.write("tmp/culprits.txt", @@tests_before.map{"#{_1} #{is}"}.join("\n") + "\n")
137137
end
138138
end
139139

0 commit comments

Comments
 (0)