Skip to content
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

Make rendering test faster using updated yamatanooroti #747

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

tompng
Copy link
Member

@tompng tompng commented Sep 6, 2024

Makes test_rendering faster. Yamatanooroti's wait time is reduced from 0.1 sec to 0.01 sec
rake test_yamatanooroti(vterm-yamatanooroti ubuntu-latest head) 209 seconds → 57 seconds

@@ -1902,13 +1902,14 @@ def test_stop_continue
rubyfile.close
start_terminal(40, 50, ['bash'])
write "ruby -I#{@pwd}/lib -rreline #{rubyfile.path}\n"
assert_screen(/^>/)
write "abc\ndef\nhi"
pid = pidfile.tap(&:rewind).read.to_i
Process.kill(:STOP, pid) unless pid.zero?
write "fg\n"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to wait to ruby waking up after fg.
How about assert_screen(/fg\n.*>/m)

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, thanks! added

@tompng tompng marked this pull request as ready for review September 16, 2024 18:03
Copy link
Member

@ima1zumi ima1zumi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 🚀 🚀

@ima1zumi ima1zumi merged commit 7534f7f into ruby:master Oct 3, 2024
40 checks passed
@tompng tompng deleted the new_yamatanooroti branch October 3, 2024 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants