Skip to contentSkip to conversation

Allow forcing the use of current osstest HEAD for branch=osstest

PATCH In review Ian Campbell 2 participants 4 messages Feb 11, 2014 – Mar 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow forcing the use of current osstest HEAD for branch=osstest

Otherwise cr-daily-branch expects $HOME/testing.git to exist and will git-reset it etc, which is rather annoying when in standalone mode...

---
 ap-fetch-version     | 8 ++++++--
 ap-fetch-version-old | 8 ++++++--
 cr-daily-branch      | 4 +++-
 3 files changed, 15 insertions(+), 5 deletions(-)
ap-fetch-version +6 -2
index 1f3c6e9..5a5d5c4 100755
@@ -70,8 +70,12 @@ linuxfirmware)
 		$UPSTREAM_TREE_LINUXFIRMWARE master daily-cron.$branch
 	;;
 osstest)
-	git-fetch $HOME/testing.git pretest:ap-fetch >&2
-        git-rev-parse ap-fetch^0
+	if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+	    git-fetch $HOME/testing.git pretest:ap-fetch >&2
+            git-rev-parse ap-fetch^0
+	else
+	    git-rev-parse HEAD^0
+	fi
         ;;
 *)
 	echo >&2 "branch $branch ?"
ap-fetch-version-old +6 -2
index 353a817..0f5af49 100755
@@ -74,8 +74,12 @@ linuxfirmware)
 		$TREE_LINUXFIRMWARE master daily-cron-old.$branch
 	;;
 osstest)
-	git-fetch -f $HOME/testing.git incoming:ap-fetch
-        git-rev-parse ap-fetch^0
+	if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+	    git-fetch -f $HOME/testing.git incoming:ap-fetch
+            git-rev-parse ap-fetch^0
+	else
+	    git-rev-parse HEAD^0
+	fi
         ;;
 *)
 	echo >&2 "branch $branch ?"
cr-daily-branch +3 -1
index c4a0872..41ca796 100755
@@ -146,7 +146,9 @@ osstest)
 	determine_version REVISION_OSSTEST osstest
         realtree=
 	NEW_REVISION=$REVISION_OSSTEST
-	git reset --hard $REVISION_OSSTEST
+	if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+	    git reset --hard $REVISION_OSSTEST
+	fi
 	;;
 qemuu)
 	realtree=qemu-upstream-${xenbranch#xen-}
Signature · 1 line
1.8.5.2
#1 lore raw

ping?

Quoted 63 lines · Ian Campbell

Otherwise cr-daily-branch expects $HOME/testing.git to exist and will git-reset it etc, which is rather annoying when in standalone mode...

---
 ap-fetch-version     | 8 ++++++--
 ap-fetch-version-old | 8 ++++++--
 cr-daily-branch      | 4 +++-
 3 files changed, 15 insertions(+), 5 deletions(-)
ap-fetch-version +6 -2
index 1f3c6e9..5a5d5c4 100755
@@ -70,8 +70,12 @@ linuxfirmware)
 		$UPSTREAM_TREE_LINUXFIRMWARE master daily-cron.$branch
 	;;
 osstest)
-	git-fetch $HOME/testing.git pretest:ap-fetch >&2
-        git-rev-parse ap-fetch^0
+	if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+	    git-fetch $HOME/testing.git pretest:ap-fetch >&2
+            git-rev-parse ap-fetch^0
+	else
+	    git-rev-parse HEAD^0
+	fi
         ;;
 *)
 	echo >&2 "branch $branch ?"
ap-fetch-version-old +6 -2
index 353a817..0f5af49 100755
@@ -74,8 +74,12 @@ linuxfirmware)
 		$TREE_LINUXFIRMWARE master daily-cron-old.$branch
 	;;
 osstest)
-	git-fetch -f $HOME/testing.git incoming:ap-fetch
-        git-rev-parse ap-fetch^0
+	if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+	    git-fetch -f $HOME/testing.git incoming:ap-fetch
+            git-rev-parse ap-fetch^0
+	else
+	    git-rev-parse HEAD^0
+	fi
         ;;
 *)
 	echo >&2 "branch $branch ?"
cr-daily-branch +3 -1
index c4a0872..41ca796 100755
@@ -146,7 +146,9 @@ osstest)
 	determine_version REVISION_OSSTEST osstest
         realtree=
 	NEW_REVISION=$REVISION_OSSTEST
-	git reset --hard $REVISION_OSSTEST
+	if [ "x$OSSTEST_USE_HEAD" != "xy" ] ; then
+	    git reset --hard $REVISION_OSSTEST
+	fi
 	;;
 qemuu)
 	realtree=qemu-upstream-${xenbranch#xen-}
Acked-by
#2 lore raw

Ian Campbell writes ("Re: [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest"):

Quoted 5 lines

ping?

Quoted 2 lines · Ian Campbell

Otherwise cr-daily-branch expects $HOME/testing.git to exist and will git-reset it etc, which is rather annoying when in standalone mode...

Ian.

#3 lore raw
Quoted 8 lines · Ian Jackson

Ian Campbell writes ("Re: [PATCH OSSTEST] Allow forcing the use of current osstest HEAD for branch=osstest"):

Quoted 5 lines

ping?

Quoted 2 lines · Ian Campbell

Otherwise cr-daily-branch expects $HOME/testing.git to exist and will git-reset it etc, which is rather annoying when in standalone mode...

When I came to apply their conflicts due to the switch from "git-foo" to "git foo" but those were trivially resolved so I have pushed.

Ian.