<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From ba8738a0a615a51984a60be2f987b98789968fb6 Mon Sep 17 00:00:00 2001
Message-Id: &lt;ba8738a0a615a51984a60be2f987b98789968fb6.1387369730.git.minovotn@redhat.com&gt;
In-Reply-To: &lt;091eecc4fa42754760dfff393dabcc2b444e9693.1387369730.git.minovotn@redhat.com&gt;
References: &lt;091eecc4fa42754760dfff393dabcc2b444e9693.1387369730.git.minovotn@redhat.com&gt;
From: Markus Armbruster &lt;armbru@redhat.com&gt;
Date: Tue, 10 Dec 2013 15:29:21 +0100
Subject: [PATCH 21/21] tests: Fix schema parser test for in-tree build
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

RH-Author: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-id: &lt;1386689361-30281-19-git-send-email-armbru@redhat.com&gt;
Patchwork-id: 56133
O-Subject: [PATCH 7.0 qemu-kvm 18/18] tests: Fix schema parser test for in-tree build
Bugzilla: 997915
RH-Acked-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
RH-Acked-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
RH-Acked-by: Luiz Capitulino &lt;lcapitulino@redhat.com&gt;

From: Markus Armbruster &lt;armbru@redhat.com&gt;

Commit 4f193e3 added the test, but screwed up in-tree builds
(SRCDIR=.): the tests's output overwrites the expected output, and is
thus compared to itself.

Cc: qemu-stable@nongnu.org
Reported-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Reviewed-by: Andreas FÃ¤rber &lt;afaerber@suse.de&gt;
Reviewed-by: Laszlo Ersek &lt;lersek@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
(cherry picked from commit d8039e58b1ecfdc9af171502c83e3949f6dafb95)
---
 tests/.gitignore | 1 +
 tests/Makefile   | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

Signed-off-by: Michal Novotny &lt;minovotn@redhat.com&gt;
---
 tests/.gitignore | 1 +
 tests/Makefile   | 8 ++++----
 2 files changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/.gitignore b/tests/.gitignore
index fb05c2a..d9c2ef4 100644
--- a/tests/.gitignore
+++ b/tests/.gitignore
@@ -19,3 +19,4 @@ test-thread-pool
 test-x86-cpuid
 test-xbzrle
 *-test
+qapi-schema/*.test.*
diff --git a/tests/Makefile b/tests/Makefile
index a38f360..3d196aa 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -233,10 +233,10 @@ check-tests/test-qapi.py: tests/test-qapi.py
 
 .PHONY: $(patsubst %, check-%, $(check-qapi-schema-y))
 $(patsubst %, check-%, $(check-qapi-schema-y)): check-%.json: $(SRC_PATH)/%.json
-	$(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py &lt;$^ &gt;$*.out 2&gt;$*.err; echo $$? &gt;$*.exit, "  TEST  $*.out")
-	@diff -q $(SRC_PATH)/$*.out $*.out
-	@diff -q $(SRC_PATH)/$*.err $*.err
-	@diff -q $(SRC_PATH)/$*.exit $*.exit
+	$(call quiet-command, PYTHONPATH=$(SRC_PATH)/scripts $(PYTHON) $(SRC_PATH)/tests/qapi-schema/test-qapi.py &lt;$^ &gt;$*.test.out 2&gt;$*.test.err; echo $$? &gt;$*.test.exit, "  TEST  $*.out")
+	@diff -q $(SRC_PATH)/$*.out $*.test.out
+	@diff -q $(SRC_PATH)/$*.err $*.test.err
+	@diff -q $(SRC_PATH)/$*.exit $*.test.exit
 
 # Consolidated targets
 
-- 
1.7.11.7

</pre></body></html>