]> git.eshelyaron.com Git - emacs.git/commitdiff
Make recent dired tests check for external executables
authorGlenn Morris <rgm@gnu.org>
Tue, 21 Sep 2021 15:14:01 +0000 (08:14 -0700)
committerGlenn Morris <rgm@gnu.org>
Tue, 21 Sep 2021 15:15:02 +0000 (08:15 -0700)
* test/lisp/dired-aux-tests.el (dired-test-bug47058-tar)
(dired-test-bug47058-zip): Add skip conditions.

test/lisp/dired-aux-tests.el

index 5888f4cd993c212795d36021fd2570bcc3ed38c9..af0d8b09366a60e921a66e5140a790b337de26d3 100644 (file)
 
 (ert-deftest dired-test-bug47058-tar ()
   "test for https://debbugs.gnu.org/47058 ."
+  (skip-unless (and (executable-find "tar")
+                    (executable-find "gzip")))
   (dired-test-bug47058-fn "tar -cf - %i | gzip -c9 > %o"
                            "gzip -dc %i | tar -xf - -C %c"
                            ".tar.gz"))
 
 (ert-deftest dired-test-bug47058-zip ()
   "test for https://debbugs.gnu.org/47058 ."
+  (skip-unless (and (executable-find "zip")
+                    (executable-find "unzip")))
   (dired-test-bug47058-fn "zip %o -r --filesync %i"
                            "unzip -o -d %o %i"
                            ".zip"))