[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/dtache 0f3dce2191 04/14: Fix tests
From: |
ELPA Syncer |
Subject: |
[elpa] externals/dtache 0f3dce2191 04/14: Fix tests |
Date: |
Fri, 13 May 2022 11:57:47 -0400 (EDT) |
branch: externals/dtache
commit 0f3dce21911371c1edac40c82b17ec53ee58e436
Author: Niklas Eklund <niklas.eklund@posteo.net>
Commit: Niklas Eklund <niklas.eklund@posteo.net>
Fix tests
---
test/dtache-test.el | 13 ++++++++-----
1 file changed, 8 insertions(+), 5 deletions(-)
diff --git a/test/dtache-test.el b/test/dtache-test.el
index 2cfb82b381..e752e2b65c 100644
--- a/test/dtache-test.el
+++ b/test/dtache-test.el
@@ -81,14 +81,14 @@
"-c" ,(dtache--session-file session 'socket t)
"-z" ,dtache-shell-program
"-c"
- ,(format "{ dtache-env ls\\ -la; } 2>&1 | tee %s"
+ ,(format "{ dtache-env smart ls\\ -la; } 2>&1 | tee %s"
(dtache--session-file session 'log t))))
(expected-concat (format "%s -c %s -z %s -c %s"
dtache-dtach-program
(dtache--session-file session 'socket t)
dtache-shell-program
(shell-quote-argument
- (format "{ dtache-env ls\\ -la; } 2>&1 |
tee %s"
+ (format "{ dtache-env smart ls\\ -la; }
2>&1 | tee %s"
(dtache--session-file session
'log t))))))
(should (equal expected (dtache-dtach-command session)))
(should (equal expected-concat (dtache-dtach-command session t))))
@@ -234,10 +234,13 @@
:id 'foo123)))
;; With dtache-env
(let ((dtache-env "dtache-env"))
- (should (string= "{ dtache-env ls\\ -la; } 2>&1 | tee
/tmp/dtache/foo123.log"
+ (should (string= "{ dtache-env smart ls\\ -la; } 2>&1 | tee
/tmp/dtache/foo123.log"
(dtache--dtache-command attachable-session)))
- (should (string= "{ dtache-env ls\\ -la; } &> /tmp/dtache/foo123.log"
- (dtache--dtache-command nonattachable-session))))
+ (should (string= "{ dtache-env smart ls\\ -la; } &>
/tmp/dtache/foo123.log"
+ (dtache--dtache-command nonattachable-session)))
+ (let ((dtache-env-smart-mode-block-list '("ls -la")))
+ (should (string= "{ dtache-env dumb ls\\ -la; } 2>&1 | tee
/tmp/dtache/foo123.log"
+ (dtache--dtache-command attachable-session)))))
;; Without dtache-env
(let ((dtache-env nil)
- [elpa] externals/dtache updated (5a39733299 -> 04f27090ae), ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 19f13e25d5 02/14: new-dtache-env, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 60ec4c26d1 03/14: Add smart-mode-block-list, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache d34c6cb023 10/14: Delete README.org, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache c1f3b629b8 01/14: Update README, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 0f3dce2191 04/14: Fix tests,
ELPA Syncer <=
- [elpa] externals/dtache 7f07d2ddd3 06/14: Add missing autoload cookie, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 2764a29989 08/14: Update dtache-env-mode, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 7311bcaac8 09/14: Update dtache-env-mode implementation, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 5087f90120 12/14: Update CHANGELOG, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 80d019e595 05/14: Address suggestion from linter, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache d0c5522c9e 07/14: Update README.md, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache df25737444 13/14: Mention that users need to update dtache-env, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 12e3ec8f1e 11/14: Make dtache-copy-session compatible with env mode, ELPA Syncer, 2022/05/13
- [elpa] externals/dtache 04f27090ae 14/14: Update contributor section in README, ELPA Syncer, 2022/05/13