All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ian Campbell <ian.campbell@citrix.com>
To: ian.jackson@eu.citrix.com
Cc: Ian Campbell <ian.campbell@citrix.com>, xen-devel@lists.xen.org
Subject: [PATCH OSSTEST v3 01/22] mg-*: Add mgi-common with fetch and fail helpers
Date: Wed, 24 Jun 2015 16:32:20 +0100	[thread overview]
Message-ID: <1435159961-22292-1-git-send-email-ian.campbell@citrix.com> (raw)
In-Reply-To: <1435159944.28264.295.camel@citrix.com>

Taken from both mg-cpu-microcode-update and mg-debian-installer-update

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
---
v3: New patch
---
 mg-cpu-microcode-update    |  3 ++-
 mg-debian-installer-update |  8 +-------
 mgi-common                 | 26 ++++++++++++++++++++++++++
 3 files changed, 29 insertions(+), 8 deletions(-)
 create mode 100644 mgi-common

diff --git a/mg-cpu-microcode-update b/mg-cpu-microcode-update
index 759f676..c375a43 100755
--- a/mg-cpu-microcode-update
+++ b/mg-cpu-microcode-update
@@ -3,6 +3,7 @@
 set -e
 
 . cri-getconfig
+. mgi-common
 
 # iucode_tool is in /usr/sbin, see #788459.
 export PATH="/usr/local/sbin:$PATH:/sbin:/usr/sbin"
@@ -41,7 +42,7 @@ INTEL_TGZ='http://downloadmirror.intel.com/24661/eng/microcode-20150121.tgz'
 mkdir intel-ucode
 
 echo >&2 "Fetching Intel ucode"
-curl -s $INTEL_TGZ > intel-ucode/microcode.tgz
+fetch $INTEL_TGZ > intel-ucode/microcode.tgz
 
 tar -C intel-ucode -xaf intel-ucode/microcode.tgz microcode.dat
 
diff --git a/mg-debian-installer-update b/mg-debian-installer-update
index ba2fdc4..770022c 100755
--- a/mg-debian-installer-update
+++ b/mg-debian-installer-update
@@ -22,21 +22,15 @@
 set -e
 
 . cri-getconfig
+. mgi-common
 
 suite=$1
 arch=$2
 packages="$3"
 
-fail () { echo >&2 "$0: $1"; exit 1; }
-
 site=http://ftp.debian.org/debian/
 sbase=$site/dists/$suite
 
-fetch () {
-	# no-cache due to intercepting proxies messing things up.
-	curl -s -H 'Pragma: no-cache' $1
-}
-
 case ${suite}_${arch} in
     lenny_armhf|squeeze_armhf|lenny_arm64|squeeze_arm64|wheezy_arm64)
         # No such thing.
diff --git a/mgi-common b/mgi-common
new file mode 100644
index 0000000..de86e8d
--- /dev/null
+++ b/mgi-common
@@ -0,0 +1,26 @@
+# -*- bash -*-
+
+# Helpers for mg-*
+#
+# This is part of "osstest", an automated testing framework for Xen.
+# Copyright (C) 2015 Citrix Inc.
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU Affero General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU Affero General Public License for more details.
+#
+# You should have received a copy of the GNU Affero General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+fail () { echo >&2 "$0: $1"; exit 1; }
+
+fetch () {
+	# no-cache due to intercepting proxies messing things up.
+	curl -s -H 'Pragma: no-cache' $1
+}
-- 
2.1.4

  reply	other threads:[~2015-06-24 15:32 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-24 15:32 [PATCH OSSTEST v3 00/22] Initial support for ARM64 Ian Campbell
2015-06-24 15:32 ` Ian Campbell [this message]
2015-06-24 15:59   ` [PATCH OSSTEST v3 01/22] mg-*: Add mgi-common with fetch and fail helpers Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 02/22] mg-*: Make package fetching common in new mgi-debian Ian Campbell
2015-06-24 16:00   ` Ian Jackson
2015-06-25  9:17     ` Ian Campbell
2015-06-25 10:22       ` Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 03/22] Introduce mg-pxe-loader-update Ian Campbell
2015-06-24 16:02   ` Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 04/22] Debian: Preseed a EFI system partition during host install Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 05/22] ts-host-install: Split initrd out of @installcmdline Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 06/22] ts-host-install: split the "di" from the "host" command line Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 07/22] Refactor pxelinux configuration Ian Campbell
2015-06-24 16:04   ` Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 08/22] ts-host-install: Support UEFI PXE boot using grub.efi Ian Campbell
2015-06-24 16:06   ` Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 09/22] Enable chain loading to local disk for UEFI PXE systems Ian Campbell
2015-06-24 16:07   ` Ian Jackson
2015-06-24 17:58     ` Ian Campbell
2015-06-25 10:18       ` Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 10/22] Add arm64 build and test jobs Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 11/22] ts-kernel-build: Additional kernel options for Mustang Ian Campbell
2015-06-24 16:08   ` Ian Jackson
2015-06-26 11:05   ` Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 12/22] ts-kernel-build: Enable CONFIG_EFI_VARS Ian Campbell
2015-06-24 16:08   ` Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 13/22] ts-host-install: Set dtbs in the non-special kernel case too Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 14/22] Debian: Do not add Debian to UEFI boot order on install Ian Campbell
2015-06-24 16:11   ` Ian Jackson
2015-06-24 17:59     ` Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 15/22] standalone: Prefer ./local-config to $HOME/.xen-osstest/config Ian Campbell
2015-06-24 16:12   ` Ian Jackson
2015-06-24 15:32 ` [PATCH OSSTEST v3 16/22] Debian: grub2: Log full line range of menuentry and submenu entries Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 17/22] Debian: grub2: Use GRUB_CMDLINE_LINUX_XEN_REPLACE(_DEFAULT) Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 18/22] Collect xen.efi into xendist and install in appropriate place Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 19/22] Debian: Ignore xen-syms entries in grub.cfg Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 20/22] Debian: Collect kernel command line from grub.cfg Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 21/22] Debian: Arrange to be able to chainload a xen.efi from grub2 Ian Campbell
2015-06-25 10:33   ` Ian Jackson
2015-06-25 11:46     ` Ian Campbell
2015-06-25 12:36       ` Ian Jackson
2015-06-25 13:01         ` Ian Campbell
2015-06-25 13:02           ` Ian Jackson
2015-06-25 14:16             ` Ian Campbell
2015-06-25 17:31         ` Konrad Rzeszutek Wilk
2015-06-26  7:07           ` Ian Campbell
2015-06-24 15:32 ` [PATCH OSSTEST v3 22/22] Enable CONFIG_SPARSEMEM_VMEMMAP, arm64 seems to needs it (crashes) Ian Campbell
2015-06-26  8:53   ` Ian Campbell

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1435159961-22292-1-git-send-email-ian.campbell@citrix.com \
    --to=ian.campbell@citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.