[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/urgrep 01fbe92f2c 103/115: In tests, wait for grep to f
From: |
ELPA Syncer |
Subject: |
[elpa] externals/urgrep 01fbe92f2c 103/115: In tests, wait for grep to finish before doing any checks |
Date: |
Wed, 10 May 2023 03:00:49 -0400 (EDT) |
branch: externals/urgrep
commit 01fbe92f2cb4f07920fa4b5b2b6b6203f9d44dbb
Author: Jim Porter <jporterbugs@gmail.com>
Commit: Jim Porter <jporterbugs@gmail.com>
In tests, wait for grep to finish before doing any checks
This ensures that a failing test doesn't prompt about killing the process.
---
urgrep-tests.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/urgrep-tests.el b/urgrep-tests.el
index 6e4c58f90a..ac7434053a 100644
--- a/urgrep-tests.el
+++ b/urgrep-tests.el
@@ -570,12 +570,12 @@ joined to compare against COMMAND."
(ert-deftest urgrep-tests/urgrep/group ()
(switch-to-buffer (urgrep "urgrep"))
+ (while (get-buffer-process (current-buffer))
+ (sit-for 0.01))
(should (and (equal urgrep-current-tool (urgrep-get-tool))
(local-variable-p 'urgrep-current-tool)))
(should (and (equal urgrep-current-query '("urgrep"))
(local-variable-p 'urgrep-current-query)))
- (while (get-buffer-process (current-buffer))
- (sit-for 0.01))
(goto-char (point-min))
(re-search-forward "urgrep-tests.el")
(beginning-of-line 2)
@@ -583,24 +583,24 @@ joined to compare against COMMAND."
(ert-deftest urgrep-tests/urgrep/no-group ()
(switch-to-buffer (urgrep "urgrep" :group nil))
+ (while (get-buffer-process (current-buffer))
+ (sit-for 0.01))
(should (and (equal urgrep-current-tool (urgrep-get-tool))
(local-variable-p 'urgrep-current-tool)))
(should (and (equal urgrep-current-query '("urgrep" :group nil))
(local-variable-p 'urgrep-current-query)))
- (while (get-buffer-process (current-buffer))
- (sit-for 0.01))
(goto-char (point-min))
(re-search-forward "urgrep-tests.el:")
(urgrep-tests/check-match-at-point))
(ert-deftest urgrep-tests/urgrep-run-command ()
(switch-to-buffer (urgrep-run-command (urgrep-command "urgrep") nil nil))
+ (while (get-buffer-process (current-buffer))
+ (sit-for 0.01))
(should (and (equal urgrep-current-tool (urgrep-get-tool))
(local-variable-p 'urgrep-current-tool)))
(should (and (equal urgrep-current-query (urgrep-command "urgrep"))
(local-variable-p 'urgrep-current-query)))
- (while (get-buffer-process (current-buffer))
- (sit-for 0.01))
(goto-char (point-min))
(re-search-forward "urgrep-tests.el")
(beginning-of-line 2)
- [elpa] externals/urgrep f2c87e7520 080/115: Improve robustness of tests for grep command generation, (continued)
- [elpa] externals/urgrep f2c87e7520 080/115: Improve robustness of tests for grep command generation, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep b03a3d84ec 098/115: Add `suffix` argument to `urgrep--get-prop(-pcase)?`, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep eb5191bfd5 097/115: Update copyright year, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 43c82e84ec 082/115: Add CI for Emacs 27.1, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 3082d89bd9 099/115: Add support for abbreviating the command in urgrep buffers, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep b5b426e9ca 084/115: Fix hiding excessive part of rgrep command in Emacs 28, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 56acdfe434 087/115: Improve how we wait for urgrep to finish in tests, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 30cc9e363e 085/115: Fix context-line detection for find/grep, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 0b036cdcf4 100/115: Improve explanation of `C-u C-u` for choosing directory, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 6614dfe651 102/115: Update checkout action in CI, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 01fbe92f2c 103/115: In tests, wait for grep to finish before doing any checks,
ELPA Syncer <=
- [elpa] externals/urgrep 99e1de4eb1 105/115: Fix an edge case when unable to get the grouped filename for highlighting, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep f5b41c672b 106/115: Use `rx` in several places, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 91e3807239 109/115: Properly evaluate rx forms, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 1d4bdca3d8 111/115: Add package keywords and such, ELPA Syncer, 2023/05/10
- [elpa] externals/urgrep 61ef67450b 114/115: Assign copyright to the FSF, ELPA Syncer, 2023/05/10