mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
git: make tests less verbose
This commit is contained in:
parent
d41236fef5
commit
9fcb4c0896
2 changed files with 12 additions and 12 deletions
|
@ -10,7 +10,7 @@ echo @@ file-type change @@
|
|||
rfork ne
|
||||
cd scratch/repo1
|
||||
repo1=`{pwd}
|
||||
git/init
|
||||
q git/init
|
||||
|
||||
# in repo1:
|
||||
# create A as a file
|
||||
|
@ -18,11 +18,11 @@ echo @@ file-type change @@
|
|||
echo A > A
|
||||
mkdir B
|
||||
echo C > B/C
|
||||
git/add A B/C
|
||||
git/commit -m 1 A B/C
|
||||
q git/add A B/C
|
||||
q git/commit -m 1 A B/C
|
||||
|
||||
cd ..
|
||||
git/clone $repo1 repo2
|
||||
q git/clone $repo1 repo2
|
||||
cd repo2
|
||||
repo2=`{pwd}
|
||||
|
||||
|
@ -38,12 +38,12 @@ echo @@ file-type change @@
|
|||
mkdir A
|
||||
echo B > A/B
|
||||
echo B > B
|
||||
git/add A/B B
|
||||
git/commit -m 2 A/B B
|
||||
q git/add A/B B
|
||||
q git/commit -m 2 A/B B
|
||||
|
||||
# pull repo2 after file changed to directory in repo1
|
||||
cd $repo2
|
||||
git/pull
|
||||
q git/pull
|
||||
|
||||
diff -r $repo1/A $repo2/A || exit 'pull fail A'
|
||||
diff -r $repo1/B $repo2/B || exit 'pull fail B'
|
||||
|
|
|
@ -8,14 +8,14 @@ mkdir -p scratch/noam
|
|||
echo @@ noam test @@
|
||||
@{
|
||||
cd scratch/noam
|
||||
git/init
|
||||
q git/init
|
||||
touch a
|
||||
git/add a
|
||||
git/commit -m 'add a' a
|
||||
q git/add a
|
||||
q git/commit -m 'add a' a
|
||||
rm a
|
||||
mkdir a
|
||||
touch a/b
|
||||
|
||||
git/add a/b
|
||||
git/commit -m 'switch to folder' a a/b
|
||||
q git/add a/b
|
||||
q git/commit -m 'switch to folder' a a/b
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue