From 7acbb6c69b31c2d07ce7c6d717b752069087a577 Mon Sep 17 00:00:00 2001 From: Quentin Renard Date: Thu, 2 Jan 2020 17:17:49 +0100 Subject: [PATCH] Mmm --- ssh_test.go | 4 ++-- testdata/archive/d/f | 0 testdata/archive/f | 0 testdata/os/d/d1/f11 | 0 testdata/os/d/d2/d21/f211 | 0 testdata/os/d/d2/f21 | 0 testdata/os/d/f1 | 0 testdata/os/f | 0 testdata/ssh/f | 0 testdata/template/layouts/dir/layout2.html | 0 testdata/template/layouts/dummy.css | 0 testdata/template/layouts/layout1.html | 0 testdata/template/templates/dir/template2.html | 0 testdata/template/templates/dummy.css | 0 testdata/template/templates/template1.html | 0 15 files changed, 2 insertions(+), 2 deletions(-) mode change 100644 => 100755 testdata/archive/d/f mode change 100644 => 100755 testdata/archive/f mode change 100644 => 100755 testdata/os/d/d1/f11 mode change 100644 => 100755 testdata/os/d/d2/d21/f211 mode change 100644 => 100755 testdata/os/d/d2/f21 mode change 100644 => 100755 testdata/os/d/f1 mode change 100644 => 100755 testdata/os/f mode change 100644 => 100755 testdata/ssh/f mode change 100644 => 100755 testdata/template/layouts/dir/layout2.html mode change 100644 => 100755 testdata/template/layouts/dummy.css mode change 100644 => 100755 testdata/template/layouts/layout1.html mode change 100644 => 100755 testdata/template/templates/dir/template2.html mode change 100644 => 100755 testdata/template/templates/dummy.css mode change 100644 => 100755 testdata/template/templates/template1.html diff --git a/ssh_test.go b/ssh_test.go index f2c6408..13b7a85 100644 --- a/ssh_test.go +++ b/ssh_test.go @@ -49,7 +49,7 @@ func TestSSHCopyFunc(t *testing.T) { if e := []string{"mkdir -p /path/to", "scp -qt /path/to"}; !reflect.DeepEqual(e, s.cmds) { t.Errorf("expected %+v, got %+v", e, s.cmds) } - if e, g := "C0644 1 dst\n0\x00", s.buf.String(); e != g { - t.Errorf("expected %+v, got %+v", []byte(e), []byte(g)) + if e, g := "C0755 1 dst\n0\x00", s.buf.String(); e != g { + t.Errorf("expected %s, got %s", e, g) } } diff --git a/testdata/archive/d/f b/testdata/archive/d/f old mode 100644 new mode 100755 diff --git a/testdata/archive/f b/testdata/archive/f old mode 100644 new mode 100755 diff --git a/testdata/os/d/d1/f11 b/testdata/os/d/d1/f11 old mode 100644 new mode 100755 diff --git a/testdata/os/d/d2/d21/f211 b/testdata/os/d/d2/d21/f211 old mode 100644 new mode 100755 diff --git a/testdata/os/d/d2/f21 b/testdata/os/d/d2/f21 old mode 100644 new mode 100755 diff --git a/testdata/os/d/f1 b/testdata/os/d/f1 old mode 100644 new mode 100755 diff --git a/testdata/os/f b/testdata/os/f old mode 100644 new mode 100755 diff --git a/testdata/ssh/f b/testdata/ssh/f old mode 100644 new mode 100755 diff --git a/testdata/template/layouts/dir/layout2.html b/testdata/template/layouts/dir/layout2.html old mode 100644 new mode 100755 diff --git a/testdata/template/layouts/dummy.css b/testdata/template/layouts/dummy.css old mode 100644 new mode 100755 diff --git a/testdata/template/layouts/layout1.html b/testdata/template/layouts/layout1.html old mode 100644 new mode 100755 diff --git a/testdata/template/templates/dir/template2.html b/testdata/template/templates/dir/template2.html old mode 100644 new mode 100755 diff --git a/testdata/template/templates/dummy.css b/testdata/template/templates/dummy.css old mode 100644 new mode 100755 diff --git a/testdata/template/templates/template1.html b/testdata/template/templates/template1.html old mode 100644 new mode 100755