File: 006_fix_test_abstract.patch

package info (click to toggle)
ruby-sshkit 1.21.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 692 kB
  • sloc: ruby: 3,521; makefile: 2
file content (17 lines) | stat: -rw-r--r-- 964 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Description: Remove string match check from stacktrace
 It differs when running on autopkgtest, I believe this might also
 have something to do with a change in behavior in the way the ruby
 interpreter dumps the stacktrace, but I don't have time to confirm.
Author: Samuel Henrique <samueloph@debian.org>
Index: ruby-sshkit/test/unit/backends/test_abstract.rb
===================================================================
--- ruby-sshkit.orig/test/unit/backends/test_abstract.rb
+++ ruby-sshkit/test/unit/backends/test_abstract.rb
@@ -124,7 +124,6 @@ module SSHKit
         assert_equal 2, lines.length
 
         assert_equal("[Deprecated] The background method is deprecated. Blame badly behaved pseudo-daemons!\n", lines[0])
-        assert_match(/    \(Called from.*test_abstract.rb:\d+:in `block in test_background_logs_deprecation_warnings'\)\n/, lines[1])
       end
 
       def test_calling_abstract_with_undefined_execute_command_raises_exception