[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion d9c97b741d 309/313: Attempt to fix automat
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion d9c97b741d 309/313: Attempt to fix automated tests. |
Date: |
Sat, 3 Dec 2022 10:59:40 -0500 (EST) |
branch: elpa/bash-completion
commit d9c97b741db389ceb127b0f0180b2087cb24d0ef
Author: Stephane Zermatten <stephane@blossom.lan>
Commit: Stephane Zermatten <stephane@blossom.lan>
Attempt to fix automated tests.
This change forces inhibit-field-text-motion to nil and changes
the way bash-completion-integration-prompt-history works to hopefully
get to a more stable test.
---
test/bash-completion-integration-test.el | 20 ++++++++++++--------
1 file changed, 12 insertions(+), 8 deletions(-)
diff --git a/test/bash-completion-integration-test.el
b/test/bash-completion-integration-test.el
index 3b74105d85..5c06b66b29 100644
--- a/test/bash-completion-integration-test.el
+++ b/test/bash-completion-integration-test.el
@@ -56,6 +56,7 @@
(concat "explicit-"
(file-name-nondirectory
bash-completion-prog)
"-args")))
+ (inhibit-field-text-motion nil)
(old-explicit-args)
(shell-mode-hook nil)
(comint-mode-hook nil)
@@ -118,14 +119,18 @@
(line-beginning-position) (point)))
(defun bash-completion_test-send (command &optional complete)
- "Execute COMMAND in a shell buffer."
+ "Execute COMMAND in a shell buffer.
+
+Return a marker pointing to the beginning of the command."
(goto-char (point-max))
- (let ((command-start (point)))
+ (let ((command-start (point))
+ (insertion-point))
(delete-region (line-beginning-position) (line-end-position))
- (insert command)
- (when complete (completion-at-point))
- (comint-send-input)
- (bash-completion_test-wait-for-prompt command-start)))
+ (prog1 (point-marker)
+ (insert command)
+ (when complete (completion-at-point))
+ (comint-send-input)
+ (bash-completion_test-wait-for-prompt command-start))))
(defun bash-completion_test-wait-for-prompt (&optional limit)
(bash-completion--wait-for-regexp
@@ -555,8 +560,7 @@ other
(bash-completion_test-send "ls -1 so" 'complete)
(bash-completion_test-send "tru" 'complete)
(bash-completion_test-send "fals" 'complete)
- (let ((history-start (line-beginning-position)))
- (bash-completion_test-send "history")
+ (let ((history-start (bash-completion_test-send "history")))
(untabify (point-min) (point-max))
(delete-trailing-whitespace (point-min) (point-max))
(should (equal
- [nongnu] elpa/bash-completion 23dbe5b537 276/313: Change minimum supported Emacs version from 24.1 to 24.3., (continued)
- [nongnu] elpa/bash-completion 23dbe5b537 276/313: Change minimum supported Emacs version from 24.1 to 24.3., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c3797e0d09 277/313: Avoid running the same completion multiple times., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0210d346f1 279/313: Make bash-completion-use-separate-processes default to nil., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7a1f127851 292/313: Test and fix the dynamic table function that's returned., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3dbbd1beff 293/313: Fix tests to run under Emacs 24.3., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion d47edb9d41 294/313: Bump version to 3.1, a bugfix release., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion faefaf6950 298/313: Add command M-x bash-completion-debug, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fa5557709e 300/313: GitHub Actions now runs tests on Emacs 27.1., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion fd853663ee 304/313: Detect non-responsive processes more quickly., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 65e54c6f9c 307/313: Temporarily revert fixes for issue #44., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion d9c97b741d 309/313: Attempt to fix automated tests.,
ELPA Syncer <=
- [nongnu] elpa/bash-completion 29b5fc860a 312/313: Shorten overly long docstring (#53), ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 3ffc296e0b 149/313: Close opened quote for all completion candidate that don't end with a, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 6bf1536325 150/313: Fix occasional escaping issue with candidates containing quotes., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 7ce100b7eb 006/313: cursor position, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 21149fdc27 152/313: Introduce the variable bash-completion-start-files, that allow, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 31bc1c1c21 161/313: Compile bash-completion.el before running tests., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 054ecdfce3 290/313: ignore file ert-profile created by ert-runner, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c444230670 154/313: Add run_tests.sh, to run tests from the command-line, with specific, ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion 0709a9803d 303/313: Support newlines in the output of complete -p., ELPA Syncer, 2022/12/03
- [nongnu] elpa/bash-completion c5eaeed156 311/313: Always ensure that a copy of the candidate list is returned (#48), ELPA Syncer, 2022/12/03