Commit 98dc8bb90be0a1d6df6ce437fcf0c72590519058

Authored by Shrikant Sharat
1 parent 5d3a3ee01c

git's output is so unreliable.

We need a different way to check if git is doing what its supposed to do.

Showing 11 changed files with 18 additions and 80 deletions Side-by-side Diff

tests/branch-bundle.t
... ... @@ -17,12 +17,7 @@ Go back to master.
17 17  
18 18 Load plugin from b1.
19 19  
20   - $ antigen-bundle $PLUGIN_DIR --branch=b1
21   - Cloning into '.+?'\.\.\. (re)
22   - done.
23   - Checking connectivity... done
24   - Switched to a new branch 'b1'
25   - Branch b1 set up to track remote branch b1 from origin.
  20 + $ antigen-bundle $PLUGIN_DIR --branch=b1 &> /dev/null
26 21 $ hehe
27 22 hehe from b1
28 23  
... ... @@ -32,9 +27,6 @@ Does not say 'Already on b1' on each session startup.
32 27  
33 28 Load plugin from master.
34 29  
35   - $ antigen-bundle $PLUGIN_DIR
36   - Cloning into '.+?'\.\.\. (re)
37   - done.
38   - Checking connectivity... done
  30 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
39 31 $ hehe
40 32 hehe
1 1 Load plugin from master.
2 2  
3   - $ antigen-bundle $PLUGIN_DIR
4   - Cloning into '*'... (glob)
5   - done.
6   - Checking connectivity... done
  3 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
7 4 $ hehe
8 5 hehe
9 6  
... ... @@ -21,10 +18,7 @@ Confirm there is still only one repository.
21 18 Load a prezto style module. Should only source the `init.zsh` present in the
22 19 module.
23 20  
24   - $ antigen-bundle $PLUGIN_DIR2
25   - Cloning into '*'... (glob)
26   - done.
27   - Checking connectivity... done
  21 + $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
28 22 $ hehe2
29 23 hehe2
30 24  
1 1 Add multiple bundles.
2 2  
3   - $ echo "$PLUGIN_DIR\n$PLUGIN_DIR2" | antigen-bundles
4   - Cloning into '.+?'\.\.\. (re)
5   - done.
6   - Checking connectivity... done
7   - Cloning into '.+?'\.\.\. (re)
8   - done.
9   - Checking connectivity... done
  3 + $ echo "$PLUGIN_DIR\n$PLUGIN_DIR2" | antigen-bundles &> /dev/null
10 4  
11 5 Check if they are both applied.
12 6  
... ... @@ -22,13 +16,7 @@ Clean it all up.
22 16  
23 17 Specify with indentation.
24 18  
25   - $ echo " $PLUGIN_DIR\n $PLUGIN_DIR2" | antigen-bundles
26   - Cloning into '.+?'\.\.\. (re)
27   - done.
28   - Checking connectivity... done
29   - Cloning into '.+?'\.\.\. (re)
30   - done.
31   - Checking connectivity... done
  19 + $ echo " $PLUGIN_DIR\n $PLUGIN_DIR2" | antigen-bundles &> /dev/null
32 20  
33 21 Again, check if they are both applied.
34 22  
... ... @@ -5,14 +5,8 @@ Firstly, no plugins, nothing to cleanup.
5 5  
6 6 Load the plugins.
7 7  
8   - $ antigen-bundle $PLUGIN_DIR
9   - Cloning into '*'... (glob)
10   - done.
11   - Checking connectivity... done
12   - $ antigen-bundle $PLUGIN_DIR2
13   - Cloning into '*'... (glob)
14   - done.
15   - Checking connectivity... done
  8 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
  9 + $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
16 10  
17 11 Check the listing.
18 12  
... ... @@ -6,10 +6,7 @@ Empty initial listing.
6 6  
7 7 Add a bundle.
8 8  
9   - $ antigen-bundle $PLUGIN_DIR
10   - Cloning into '.+?'\.\.\. (re)
11   - done.
12   - Checking connectivity... done
  9 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
13 10 $ antigen-list
14 11 */test-plugin / plugin true (glob)
15 12  
... ... @@ -21,10 +18,7 @@ Add same bundle and check uniqueness.
21 18  
22 19 Add another bundle.
23 20  
24   - $ antigen-bundle $PLUGIN_DIR2
25   - Cloning into '.+?'\.\.\. (re)
26   - done.
27   - Checking connectivity... done
  21 + $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
28 22 $ antigen-list
29 23 */test-plugin / plugin true (glob)
30 24 */test-plugin2 / plugin true (glob)
tests/no_local_clone.t
... ... @@ -14,10 +14,7 @@ Confirm no clone is made.
14 14  
15 15 Load the plugin with a clone.
16 16  
17   - $ antigen-bundle $PLUGIN_DIR
18   - Cloning into '*'... (glob)
19   - done.
20   - Checking connectivity... done
  17 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
21 18  
22 19 Empty the record.
23 20  
tests/revert-update.t
1 1 Load and test plugin.
2 2  
3   - $ antigen-bundle $PLUGIN_DIR
4   - Cloning into '.+?'\.\.\. (re)
5   - done.
6   - Checking connectivity... done
  3 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
7 4 $ hehe
8 5 hehe
9 6  
... ... @@ -20,10 +20,7 @@ Create fake host repository
20 20  
21 21 Create a normal repository cloning from host
22 22  
23   - $ git clone $TEST_HOST $TEST_NORMAL
24   - Cloning into * (glob)
25   - done.
26   - Checking connectivity... done
  23 + $ git clone $TEST_HOST $TEST_NORMAL &> /dev/null
27 24  
28 25 Create a submodule repository cloning from host
29 26  
... ... @@ -31,10 +28,7 @@ Create a submodule repository cloning from host
31 28 $ cd $TEST_SUBMODULE
32 29 $ git init
33 30 Initialized empty Git repository in * (glob)
34   - $ git submodule add $TEST_HOST antigen
35   - Cloning into 'antigen'...
36   - done.
37   - Checking connectivity... done
  31 + $ git submodule add $TEST_HOST antigen &> /dev/null
38 32 $ git commit -m "1"
39 33 [master (root-commit) ???????] 1 (glob)
40 34 2 files changed, 4 insertions(+)
1 1 Load a couple of plugins.
2 2  
3   - $ antigen-bundle $PLUGIN_DIR
4   - Cloning into '*'... (glob)
5   - done.
6   - Checking connectivity... done
7   - $ antigen-bundle $PLUGIN_DIR2
8   - Cloning into '*'... (glob)
9   - done.
10   - Checking connectivity... done
  3 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
  4 + $ antigen-bundle $PLUGIN_DIR2 &> /dev/null
11 5  
12 6 Create a snapshot file.
13 7  
1 1 Load the theme explicitly.
2 2  
3   - $ antigen-theme $PLUGIN_DIR silly
4   - Cloning into '*'... (glob)
5   - done.
6   - Checking connectivity... done
  3 + $ antigen-theme $PLUGIN_DIR silly &> /dev/null
7 4 $ echo "$PS1"
8 5 prompt>
1 1 Load plugin.
2 2  
3   - $ antigen-bundle $PLUGIN_DIR
4   - Cloning into '.+?'\.\.\. (re)
5   - done.
6   - Checking connectivity... done
  3 + $ antigen-bundle $PLUGIN_DIR &> /dev/null
7 4 $ hehe
8 5 hehe
9 6