Andrew's git
/
gitweb.git
/ blobdiff
summary
|
log
|
commit
|
diff
|
tree
commit
grep
author
committer
pickaxe
?
re
git-p4: add P4 jobs to git commit message
[gitweb.git]
/
t
/
lib-git-p4.sh
diff --git
a/t/lib-git-p4.sh
b/t/lib-git-p4.sh
index 0e59fd17ba942d8779ffc5d1e1994bf4f836d437..ce3536e4a02fb000ed2404f4c7c4c26bb8ea9d99 100644
(file)
--- a/
t/lib-git-p4.sh
+++ b/
t/lib-git-p4.sh
@@
-160,6
+160,15
@@
p4_add_user () {
EOF
}
+p4_add_job () {
+ p4 job -f -i <<-EOF
+ Job: $1
+ Status: open
+ User: dummy
+ Description:
+ EOF
+}
+
retry_until_success () {
timeout=$(($(time_in_seconds) + $RETRY_TIMEOUT))
until "$@" 2>/dev/null || test $(time_in_seconds) -gt $timeout