From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26911: 25.2; eshell "cd .." doesn't work correctly with TRAMP Date: Fri, 04 Sep 2020 17:40:36 +0300 Message-ID: <83eenhtxjv.fsf@gnu.org> References: <693aa189-03fa-b963-89eb-ce19c51ba325@cs.ucla.edu> <83wo1jz32t.fsf@gnu.org> <83sgc7z220.fsf@gnu.org> <83r1rryrk0.fsf@gnu.org> <47047d69-91aa-fd0d-1510-64ba7c246970@cs.ucla.edu> <83a6yeynd1.fsf@gnu.org> <03a31052-795a-c169-c199-2b0f3ba88ec2@cs.ucla.edu> <83sgc5xq8k.fsf@gnu.org> <164450fe-7f86-e336-87d4-13c52e52c61c@cs.ucla.edu> <83eenoxm18.fsf@gnu.org> <6acf8cfa-6071-e7b1-3055-04292634bb39@cs.ucla.edu> <83sgc2x3p2.fsf@gnu.org> <83imcuvkhd.fsf@gnu.org> <871rjhsqmr.fsf@gmx.de> <83lfhpu3st.fsf@gnu.org> <87wo19r6m2.fsf@gmx.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13426"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 26911@debbugs.gnu.org, mattiase@acm.org, eggert@cs.ucla.edu, yegortimoshenko@gmail.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Sep 04 16:41:43 2020 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1kECuM-0003LK-VM for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 16:41:43 +0200 Original-Received: from localhost ([::1]:35822 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kECuM-0005NH-1R for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 04 Sep 2020 10:41:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37340) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kECti-00043Y-MA for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 10:41:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56982) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kECti-0005Ma-B7 for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 10:41:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1kECti-00062N-9R for bug-gnu-emacs@gnu.org; Fri, 04 Sep 2020 10:41:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 04 Sep 2020 14:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26911 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 26911-submit@debbugs.gnu.org id=B26911.159923045823190 (code B ref 26911); Fri, 04 Sep 2020 14:41:02 +0000 Original-Received: (at 26911) by debbugs.gnu.org; 4 Sep 2020 14:40:58 +0000 Original-Received: from localhost ([127.0.0.1]:40295 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kECtd-00061y-P2 for submit@debbugs.gnu.org; Fri, 04 Sep 2020 10:40:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:55342) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kECtb-00061i-Dj for 26911@debbugs.gnu.org; Fri, 04 Sep 2020 10:40:56 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:43794) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kECtU-0005Fg-39; Fri, 04 Sep 2020 10:40:48 -0400 Original-Received: from [176.228.60.248] (port=3359 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1kECtS-0004AW-Ub; Fri, 04 Sep 2020 10:40:47 -0400 In-Reply-To: <87wo19r6m2.fsf@gmx.de> (message from Michael Albinus on Fri, 04 Sep 2020 15:53:09 +0200) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:187145 Archived-At: > From: Michael Albinus > Cc: eggert@cs.ucla.edu, 26911@debbugs.gnu.org, mattiase@acm.org, > yegortimoshenko@gmail.com > Date: Fri, 04 Sep 2020 15:53:09 +0200 > > > I did, but most of the tests are skipped. Can you teach me how to > > enable them on MS-Windows? I can use PuTTY to connect to a remote > > GNU/Linux machine where I have an account, if that is necessary. > > Well, first check whether you can connect the remote host in > question. Try it interactively: > > C-x C-f /plink:user@host:/tmp > > ("user" and "host" at your taste). The connection shall not require a > password. Alternatively, if you have created a PuTTy session with name > "session", you could use instead "/plinkx:session:/tmp". > > Then, according to my MS Windows blurb, run in a CMD window: > > --8<---------------cut here---------------start------------->8--- > > set REMOTE_TEMPORARY_FILE_DIRECTORY=/plink:user@host:/tmp > > %HOMEPATH%\Desktop\emacs-28.0.50\bin\emacs.exe -Q -batch -L X:\src\tramp\lisp -l X:\src\tramp\test\tramp-tests.el -f ert-run-tests-batch-and-exit > --8<---------------cut here---------------end--------------->8--- OK, thanks. This worked. The results (see below) are mixed, but the problems seem mostly to have something to do with the remote system, not with Emacs. The first 27 tests all passed. Then things went south, with all the rest but the last 5 tests failing. The failures are pretty similar, and can be divided into the following groups: . (file-error "Method `plink' should specify both encoding and decoding command or an scp program") . (file-error "Couldn't find command to check if file exists") . (file-error "Tramp failed to connect. If this happens repeatedly, try `M-x tramp-cleanup-this-connection'") The last error always followed the penultimate one. Usually, 3 "failed to connect" errors after each couldn't find command". Several tests failed with other error messages: . Test tramp-test17-insert-directory backtrace: signal(wrong-type-argument ("listp sh:")) . Test tramp-test32-shell-command-dont-erase-buffer condition: (ert-test-failed ((should (string-equal "barbaz " (buffer-string))) :form (string-equal "barbaz " "bar") :value nil)) . Test tramp-test33-environment-variables condition: (ert-test-failed ((should (string-equal (format "%s,tramp:%s " emacs-version tramp-version) (funcall this-shell-command-to-string "echo ${INSIDE_EMACS:-bla}"))) :form (string-equal "28.0.50,tramp:2.5.0-pre " "") :value nil)) Finally, the summary: Ran 71 tests, 32 results as expected, 28 unexpected, 11 skipped (2020-09-04 17:27:32+0300, 1357.765625 sec) 28 unexpected results: FAILED tramp-test17-insert-directory FAILED tramp-test18-file-attributes FAILED tramp-test19-directory-files-and-attributes FAILED tramp-test20-file-modes FAILED tramp-test21-file-links FAILED tramp-test22-file-times FAILED tramp-test23-visited-file-modtime FAILED tramp-test26-file-name-completion FAILED tramp-test27-load FAILED tramp-test28-process-file FAILED tramp-test29-start-file-process FAILED tramp-test29-start-file-process-direct-async FAILED tramp-test30-make-process FAILED tramp-test30-make-process-direct-async FAILED tramp-test31-interrupt-process FAILED tramp-test32-shell-command FAILED tramp-test32-shell-command-dont-erase-buffer FAILED tramp-test33-environment-variables FAILED tramp-test34-connection-local-variables FAILED tramp-test34-explicit-shell-file-name FAILED tramp-test35-exec-path FAILED tramp-test35-remote-path FAILED tramp-test36-vc-registered FAILED tramp-test37-make-auto-save-file-name FAILED tramp-test38-find-backup-file-name FAILED tramp-test39-make-nearby-temp-file FAILED tramp-test40-special-characters FAILED tramp-test43-asynchronous-requests 11 skipped results: SKIPPED tramp-test24-file-acl SKIPPED tramp-test25-file-selinux SKIPPED tramp-test33-environment-variables-and-port-numbers SKIPPED tramp-test40-special-characters-with-ls SKIPPED tramp-test40-special-characters-with-perl SKIPPED tramp-test40-special-characters-with-stat SKIPPED tramp-test41-utf8 SKIPPED tramp-test41-utf8-with-ls SKIPPED tramp-test41-utf8-with-perl SKIPPED tramp-test41-utf8-with-stat SKIPPED tramp-test42-file-system-info What can I do about the failed tests?