test -n "`grep ".*no available packages to build" log`"
#check source package not changed
-cd fake && test -n "`git status | grep "working directory clean"`"
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`"
]]></steps>
</testcase>
(! grep "mount:.*scratch" log)
-cd fake && test -n "`git status | grep "working directory clean"`" && cd ..
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
grep "error:.*multiple packages" log
]]></steps>
gbs -c base.cfg build -A i586 | tee log
-cd fake && test -n "`git status | grep "working directory clean"`" && cd ..
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
-cd power && test -n "`git status | grep "working directory clean"`" && cd ..
+cd power && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
-cd xorg-x11-filesystem && test -n "`git status | grep "working directory clean"`" && cd ..
+cd xorg-x11-filesystem && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
test -z "`find ~/GBS-ROOT/local/repos -name "*fake*.rpm"`"
test -z "`grep "mount:.*scratch" log`"
-cd xorg-x11-filesystem && test -n "`git status | grep "working directory clean"`" && cd ..
+cd xorg-x11-filesystem && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
]]></steps>
</testcase>
gbs -c ../base.cfg build -A i586 2>&1 | tee ../log1
# Check that build has been finished sucessful.
-test -n "`git status | grep "working directory clean"`"
+test -n "`git status | grep -E "working tree|directory clean"`"
test -n "`find ~/GBS-ROOT/local/repos -name "*sw-tools*.rpm"`"
# Check that build has been finished sucessful.
grep -i "Falling back to native, i.e. creating source archive directly from exported commit, without any patches" ../log3
-test -n "`git status | grep "working directory clean"`"
+test -n "`git status | grep -E "working tree|directory clean"`"
test -n "`find ~/GBS-ROOT/local/repos -name "*sw-tools*.rpm"`"
gbs -c ../base.cfg build -A i586 2>&1 | tee ../log1
# Check that build has been finished sucessful.
-test -n "`git status | grep "working directory clean"`"
+test -n "`git status | grep -E "working tree|directory clean"`"
test -n "`find ~/GBS-ROOT/local/repos -name "*sw-tools*.rpm"`"
# Check that build has been finished sucessful.
grep -i "Falling back to native, i.e. creating source archive directly from exported commit, without any patches" ../log3
-test -n "`git status | grep "working directory clean"`"
+test -n "`git status | grep -E "working tree|directory clean"`"
test -n "`find ~/GBS-ROOT/local/repos -name "*sw-tools*.rpm"`"
test -n "`grep "init_buildsystem.*keep-packs" log`"
-cd xorg-x11-filesystem && test -n "`git status | grep "working directory clean"`" && cd ..
+cd xorg-x11-filesystem && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
test -n "`find ~/GBS-ROOT/local/repos -name "*xorg-x11-filesystem*.rpm"`"
test -n "`grep "init_buildsystem.*keep-packs" log`"
-cd xorg-x11-filesystem && test -n "`git status | grep "working directory clean"`" && cd ..
+cd xorg-x11-filesystem && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
test -n "`find ~/GBS-ROOT/local/repos -name "*xorg-x11-filesystem*.rpm"`"
(! gbs -c base.cfg build --noinit -A i586 2>&1 | tee log)
-cd fake && test -n "`git status | grep "working directory clean"`" && cd ..
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
-cd power && test -n "`git status | grep "working directory clean"`" && cd ..
+cd power && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
-cd xorg-x11-filesystem && test -n "`git status | grep "working directory clean"`" && cd ..
+cd xorg-x11-filesystem && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
grep "\--noinit build only support building one package" log
test -z "`grep "generate repositories" log`"
-cd sw-tools && test -n "`git status | grep "working directory clean"`" && cd ..
+cd sw-tools && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
test -n "`grep "error.*noinit.*clean-once" log`"
]]></steps>
test -z "`grep "generate repositories" log`"
-cd sw-tools && test -n "`git status | grep "working directory clean"`" && cd ..
+cd sw-tools && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
test -n "`grep "error.*noinit.*clean" log`"
]]></steps>
grep "build root:.* does not exist\. Please build without --noinit first" log
-cd fake && test -n "`git status | grep "working directory clean"`" && cd ..
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
]]></steps>
</testcase>
test -z "`grep "generate repositories" log`"
-cd sw-tools && test -n "`git status | grep "working directory clean"`" && cd ..
+cd sw-tools && test -n "`git status | grep -E "working tree|directory clean"`" && cd ..
test -n "`grep "error.*scratch.*does not exist" log`"
]]></steps>
gbs -c ../base.cfg build -A i586 2>&1
# Check successfully build result.
-test -n "`git status | grep "working directory clean"`"
+test -n "`git status | grep -E "working tree|directory clean"`"
test -n "`find ~/GBS-ROOT/local/repos -name "*sw-tools*.rpm"`"
gbs -c ../base.cfg build -A i586 2>&1
# Check that build has been finished sucessful.
-test -n "`git status | grep "working directory clean"`"
+test -n "`git status | grep -E "working tree|directory clean"`"
test -n "`find ~/GBS-ROOT/local/repos -name "*sw-tools*.rpm"`"
]]></steps>
test -n "`grep "init_buildsystem.*fake.spec" log`"
#check source package whether changed or not
-cd fake && test -n "`git status | grep "working directory clean"`"
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`"
#check rpm generated whether or not
test -n "`find ~/GBS-ROOT/local/repos -name "*fake*.rpm"`"
test -n "`grep "init_buildsystem.*fake-lib.spec" log`"
#check source package whether changed or not
-cd fake && test -n "`git status | grep "working directory clean"`"
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`"
#check rpm generated whether or not
test -n "`find ~/GBS-ROOT/local/repos -name "*fake*.rpm"`"
test -z "`grep "init_buildsystem.*fake.spec" log`"
#check source package whether changed or not
-cd fake && test -n "`git status | grep "working directory clean"`"
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`"
#check rpm generated whether or not
test -n "`find ~/GBS-ROOT/local/repos -name "*fake*.rpm"`"
test -z "`grep "init_buildsystem.*fake.spec" log`"
#check source package whether changed or not
-cd fake && test -n "`git status | grep "working directory clean"`"
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`"
#check rpm generated whether or not
test -n "`find ~/GBS-ROOT/local/repos -name "*fake*.rpm"`"
test -n "`grep "gbs build.*error.*argument --spec" log`"
#check source package whether changed or not
-cd fake && test -n "`git status | grep "working directory clean"`"
+cd fake && test -n "`git status | grep -E "working tree|directory clean"`"
]]></steps>
</testcase>
#assert git packages under current dir are clean
function AssertClean()
{
- find . -maxdepth 1 -type d| sed "1d"| xargs -i sh -c "cd {};git status| grep 'working directory clean'"
+ find . -maxdepth 1 -type d| sed "1d"| xargs -i sh -c "cd {};git status| grep -E 'working tree|directory clean'"
}
#assert git package clean
# such as: AssertCleanWith fake sw-tools
function AssertCleanWith()
{
- echo $*| xargs -n1| xargs -i sh -c "cd {} && git status| grep 'working directory clean'"
+ echo $*| xargs -n1| xargs -i sh -c "cd {} && git status| grep -E 'working tree|directory clean'"
}
function AssertRPMsI()