ref: 9fcb4c0896782a8ccd3136204065ec403c479d6c
parent: d41236fef563ebc6bb0c6e3d77959eedf7e091f7
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Nov 18 15:33:17 EST 2024
git: make tests less verbose
--- a/sys/src/cmd/git/test/ftype.rc
+++ b/sys/src/cmd/git/test/ftype.rc
@@ -10,7 +10,7 @@
rfork ne
cd scratch/repo1
repo1=`{pwd}
- git/init
+ q git/init
# in repo1:
# create A as a file
@@ -18,11 +18,11 @@
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 @@
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'
--- a/sys/src/cmd/git/test/noam.rc
+++ b/sys/src/cmd/git/test/noam.rc
@@ -8,14 +8,14 @@
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
}
--
⑨