cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-tests-Fix-schema-parser-test-for-in-tree-build.patch

9ae3a8
From ba8738a0a615a51984a60be2f987b98789968fb6 Mon Sep 17 00:00:00 2001
9ae3a8
Message-Id: <ba8738a0a615a51984a60be2f987b98789968fb6.1387369730.git.minovotn@redhat.com>
9ae3a8
In-Reply-To: <091eecc4fa42754760dfff393dabcc2b444e9693.1387369730.git.minovotn@redhat.com>
9ae3a8
References: <091eecc4fa42754760dfff393dabcc2b444e9693.1387369730.git.minovotn@redhat.com>
9ae3a8
From: Markus Armbruster <armbru@redhat.com>
9ae3a8
Date: Tue, 10 Dec 2013 15:29:21 +0100
9ae3a8
Subject: [PATCH 21/21] tests: Fix schema parser test for in-tree build
9ae3a8
MIME-Version: 1.0
9ae3a8
Content-Type: text/plain; charset=UTF-8
9ae3a8
Content-Transfer-Encoding: 8bit
9ae3a8
9ae3a8
RH-Author: Markus Armbruster <armbru@redhat.com>
9ae3a8
Message-id: <1386689361-30281-19-git-send-email-armbru@redhat.com>
9ae3a8
Patchwork-id: 56133
9ae3a8
O-Subject: [PATCH 7.0 qemu-kvm 18/18] tests: Fix schema parser test for in-tree build
9ae3a8
Bugzilla: 997915
9ae3a8
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
RH-Acked-by: Luiz Capitulino <lcapitulino@redhat.com>
9ae3a8
9ae3a8
From: Markus Armbruster <armbru@redhat.com>
9ae3a8
9ae3a8
Commit 4f193e3 added the test, but screwed up in-tree builds
9ae3a8
(SRCDIR=.): the tests's output overwrites the expected output, and is
9ae3a8
thus compared to itself.
9ae3a8
9ae3a8
Cc: qemu-stable@nongnu.org
9ae3a8
Reported-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
Reviewed-by: Andreas Färber <afaerber@suse.de>
9ae3a8
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
9ae3a8
Signed-off-by: Markus Armbruster <armbru@redhat.com>
9ae3a8
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
9ae3a8
(cherry picked from commit d8039e58b1ecfdc9af171502c83e3949f6dafb95)
9ae3a8
---
9ae3a8
 tests/.gitignore | 1 +
9ae3a8
 tests/Makefile   | 8 ++++----
9ae3a8
 2 files changed, 5 insertions(+), 4 deletions(-)
9ae3a8
9ae3a8
Signed-off-by: Michal Novotny <minovotn@redhat.com>
9ae3a8
---
9ae3a8
 tests/.gitignore | 1 +
9ae3a8
 tests/Makefile   | 8 ++++----
9ae3a8
 2 files changed, 5 insertions(+), 4 deletions(-)
9ae3a8
9ae3a8
diff --git a/tests/.gitignore b/tests/.gitignore
9ae3a8
index fb05c2a..d9c2ef4 100644
9ae3a8
--- a/tests/.gitignore
9ae3a8
+++ b/tests/.gitignore
9ae3a8
@@ -19,3 +19,4 @@ test-thread-pool
9ae3a8
 test-x86-cpuid
9ae3a8
 test-xbzrle
9ae3a8
 *-test
9ae3a8
+qapi-schema/*.test.*
9ae3a8
diff --git a/tests/Makefile b/tests/Makefile
9ae3a8
index a38f360..3d196aa 100644
9ae3a8
--- a/tests/Makefile
9ae3a8
+++ b/tests/Makefile
9ae3a8
@@ -233,10 +233,10 @@ check-tests/test-qapi.py: tests/test-qapi.py
9ae3a8
 
9ae3a8
 .PHONY: $(patsubst %, check-%, $(check-qapi-schema-y))
9ae3a8
 $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json
9ae3a8
-	$(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py <$^ >$*.out 2>$*.err; echo $$? >$*.exit, "  TEST  $*.out")
9ae3a8
-	@diff -q $(SRC_PATH)/$*.out $*.out
9ae3a8
-	@diff -q $(SRC_PATH)/$*.err $*.err
9ae3a8
-	@diff -q $(SRC_PATH)/$*.exit $*.exit
9ae3a8
+	$(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py <$^ >$*.test.out 2>$*.test.err; echo $$? >$*.test.exit, "  TEST  $*.out")
9ae3a8
+	@diff -q $(SRC_PATH)/$*.out $*.test.out
9ae3a8
+	@diff -q $(SRC_PATH)/$*.err $*.test.err
9ae3a8
+	@diff -q $(SRC_PATH)/$*.exit $*.test.exit
9ae3a8
 
9ae3a8
 # Consolidated targets
9ae3a8
 
9ae3a8
-- 
9ae3a8
1.7.11.7
9ae3a8