diff options
author | Eivind Uggedal <eu@eju.no> | 2019-05-10 14:38:43 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-06-05 20:28:49 +0000 |
commit | 34946f61eaeb76cbd71bc5f44e83998290612807 (patch) | |
tree | e37279468cd6baa7d0d90e98ad17c0aca0521688 /testing/ruby-ttytest/fix-flaky-test.patch | |
parent | efbb2ad329df4b52c46da3730dafdd3cf85df86e (diff) | |
download | aports-34946f61eaeb76cbd71bc5f44e83998290612807.tar.bz2 aports-34946f61eaeb76cbd71bc5f44e83998290612807.tar.xz |
testing/ruby-ttytest: new aport
Required to run fzy's acceptance tests
Diffstat (limited to 'testing/ruby-ttytest/fix-flaky-test.patch')
-rw-r--r-- | testing/ruby-ttytest/fix-flaky-test.patch | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/testing/ruby-ttytest/fix-flaky-test.patch b/testing/ruby-ttytest/fix-flaky-test.patch new file mode 100644 index 0000000000..80bc097e45 --- /dev/null +++ b/testing/ruby-ttytest/fix-flaky-test.patch @@ -0,0 +1,12 @@ +--- ttytest-0.5.0/test/ttytest/terminal_test.rb ++++ ttytest-0.5.0_p/test/ttytest/terminal_test.rb +@@ -4,6 +4,9 @@ + class TerminalTest < Minitest::Test + def test_shell_hello_world + @tty = TTYtest.new_terminal(%{PS1='$ ' /bin/sh}) ++ # Give tmux some time to settle ++ # (see https://github.com/jhawthorn/ttytest/issues/2): ++ sleep(0.5) + @tty.assert_row(0, '$') + @tty.send_keys('echo "Hello, world"') + @tty.assert_row(0, '$ echo "Hello, world"') |