File: 002_fix-local-test-cd.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 (20 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Fix error « can't cd to /sbuild-nonexistent »
 In a chrooted environment this test fail, this patch remove the cd command.
Author: Sebastien Badia <seb@sebian.fr>
Origin: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-sshkit.git;a=commit;h=2123c058a59439858b98c611ccb7e2a8c384438a
Forwarded: not-needed
Last-Update: 2014-04-21

Index: ruby-sshkit/test/unit/backends/test_local.rb
===================================================================
--- ruby-sshkit.orig/test/unit/backends/test_local.rb
+++ ruby-sshkit/test/unit/backends/test_local.rb
@@ -15,7 +15,7 @@ module SSHKit
       def test_execute
         assert_equal true, local.execute('uname -a')
         assert_equal true, local.execute
-        assert_equal true, local.execute('cd && pwd')
+        assert_equal true, local.execute('pwd')
       end
     end
   end