aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2013-07-27 17:41:56 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2013-07-29 10:37:10 -0500
commit2caba36cc61ee3993334bc423f0852f8006fdfcf (patch)
tree0fd0967b7a7e93e52b468a2ff565993fde5fad22 /tests
parentc7a3f25200c8692e969f21c7f2555630ec0d0d30 (diff)
downloadqemu-2caba36cc61ee3993334bc423f0852f8006fdfcf.zip
qemu-2caba36cc61ee3993334bc423f0852f8006fdfcf.tar.gz
qemu-2caba36cc61ee3993334bc423f0852f8006fdfcf.tar.bz2
qapi.py: Decent syntax error reporting
Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Message-id: 1374939721-7876-5-git-send-email-armbru@redhat.com Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/qapi-schema/test-qapi.py2
-rw-r--r--tests/qapi-schema/unclosed-string.err2
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi.py
index 3280eff..b3d1e1d 100644
--- a/tests/qapi-schema/test-qapi.py
+++ b/tests/qapi-schema/test-qapi.py
@@ -16,6 +16,8 @@ import sys
try:
exprs = parse_schema(sys.stdin)
+except SystemExit:
+ raise
except:
print >>sys.stderr, "Crashed:", sys.exc_info()[0]
exit(1)
diff --git a/tests/qapi-schema/unclosed-string.err b/tests/qapi-schema/unclosed-string.err
index 5af46c2..948d883 100644
--- a/tests/qapi-schema/unclosed-string.err
+++ b/tests/qapi-schema/unclosed-string.err
@@ -1 +1 @@
-Crashed: <type 'exceptions.Exception'>
+<stdin>:1:11: Missing terminating "'"