summaryrefslogtreecommitdiffstats
path: root/patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch
diff options
context:
space:
mode:
authorAlexandru Avadanii <Alexandru.Avadanii@enea.com>2016-06-29 13:35:24 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2016-06-29 13:35:24 +0000
commit8a10d94f7dfd4bdd0459604b73bd72479c74aa43 (patch)
treef55cf9f16b2321122b10fd4de7e54ff51554e848 /patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch
parent79fb87511fcca5e8c7477e1572e30ffa080c7de3 (diff)
parent17f2551111b27ba37bd79a9a233958e188da033f (diff)
Merge "vswitchperf: Arch-indep build."
Diffstat (limited to 'patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch')
-rw-r--r--patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch b/patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch
new file mode 100644
index 00000000..29e8a1d3
--- /dev/null
+++ b/patches/vswitchperf/0001-ci-build-vsperf-make-qemu-system-name-arch-indep.patch
@@ -0,0 +1,34 @@
+From: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+Date: Tue, 28 Jun 2016 21:27:02 +0200
+Subject: [PATCH] ci/build-vsperf: make qemu-system name arch-indep.
+
+Instead of hardcoding x86_64 into qemu-system name, use `uname -m`.
+
+Signed-off-by: Alexandru Avadanii <Alexandru.Avadanii@enea.com>
+---
+ ci/build-vsperf.sh | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/ci/build-vsperf.sh b/ci/build-vsperf.sh
+index 5370898..fc38747 100755
+--- a/ci/build-vsperf.sh
++++ b/ci/build-vsperf.sh
+@@ -87,14 +87,15 @@ TEST_REPORT_LOG_DIR="${HOME}/opnfv/$PROJECT/results/$BRANCH"
+ # parameters:
+ # none
+ function terminate_vsperf() {
++ local qemu_system_name="qemu-system-$(uname -m)"
+ sudo pkill stress &> /dev/null
+ sudo pkill python3 &> /dev/null
+- sudo killall -9 qemu-system-x86_64 &> /dev/null
++ sudo killall -9 "${qemu_system_name}" &> /dev/null
+
+ # sometimes qemu resists to terminate, so wait a bit and kill it again
+- if pgrep qemu-system-x86_64 &> /dev/null ; then
++ if pgrep "${qemu_system_name}" &> /dev/null ; then
+ sleep 5
+- sudo killall -9 qemu-system-x86_64 &> /dev/null
++ sudo killall -9 "${qemu_system_name}" &> /dev/null
+ sleep 5
+ fi
+