summaryrefslogtreecommitdiff
path: root/bootstraptest/runner.rb
diff options
context:
space:
mode:
authorNaoto Ono <[email protected]>2024-07-19 15:52:33 +0900
committerKoichi Sasada <[email protected]>2024-07-19 16:39:21 +0900
commitd9bff416377e6a3f7c936e3ba8102ffc3bf8f306 (patch)
tree70cd83f36112907ebf0f7f36429b8b50027f63b6 /bootstraptest/runner.rb
parent09dd9a0457c0ce6fdde2bf0246efa5bebde1d05b (diff)
Rename a variable name
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/11205
Diffstat (limited to 'bootstraptest/runner.rb')
-rwxr-xr-xbootstraptest/runner.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index 237a90241b..24324fa51f 100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -364,7 +364,7 @@ end
# In bootstraptest, we aggregate the test results based on file level.
module Launchable
@@last_test_name = nil
- @@stderr = ''
+ @@failure_log = ''
@@duration = 0
def show_progress(message = '')
@@ -372,7 +372,7 @@ module Launchable
if writer = BT.launchable_test_reports
if faildesc
- @@stderr += faildesc
+ @@failure_log += faildesc
end
repo_path = File.expand_path("#{__dir__}/../")
relative_path = File.join(__dir__, self.path).delete_prefix("#{repo_path}/")
@@ -380,7 +380,7 @@ module Launchable
# The test path is a URL-encoded representation.
# https://github.com/launchableinc/cli/blob/v1.81.0/launchable/testpath.py#L18
test_path = "#{encode_test_path_component("file")}=#{encode_test_path_component(@@last_test_name)}"
- if @@stderr.size > 0
+ if @@failure_log.size > 0
status = 'TEST_FAILED'
else
status = 'TEST_PASSED'
@@ -391,7 +391,7 @@ module Launchable
status: status,
duration: t,
createdAt: Time.now.to_s,
- stderr: @@stderr,
+ stderr: @@failure_log,
stdout: nil,
data: {
lineNumber: self.lineno
@@ -399,7 +399,7 @@ module Launchable
}
)
@@duration = 0
- @@stderr.clear
+ @@failure_log.clear
end
@@last_test_name = relative_path
@@duration += t