commit 6133f8ce881b7e1d4bc80b749940abe78e608d40
Author: David Malcolm <dmalcolm(a)redhat.com>
Date: Fri Jan 13 12:01:33 2012 -0500
tidy up selftests for callbacks
Move the callback tests below tests/plugin/callbacks:
tests/plugin/callback-args -> tests/plugin/callbacks/args
tests/plugin/callback-exception -> tests/plugin/callbacks/exception
tests/plugin/callback-refs -> tests/plugin/callbacks/refs
tests/plugin/callback-exception/stderr.txt | 5 -----
.../{callback-args => callbacks/args}/input.c | 0
.../{callback-args => callbacks/args}/script.py | 0
.../{callback-args => callbacks/args}/stdout.txt | 0
.../exception}/input.c | 0
.../exception}/script.py | 0
tests/plugin/callbacks/exception/stderr.txt | 5 +++++
.../{callback-refs => callbacks/refs}/input.c | 0
.../{callback-refs => callbacks/refs}/script.py | 0
.../{callback-refs => callbacks/refs}/stdout.txt | 0
10 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/tests/plugin/callback-args/input.c b/tests/plugin/callbacks/args/input.c
similarity index 100%
rename from tests/plugin/callback-args/input.c
rename to tests/plugin/callbacks/args/input.c
diff --git a/tests/plugin/callback-args/script.py b/tests/plugin/callbacks/args/script.py
similarity index 100%
rename from tests/plugin/callback-args/script.py
rename to tests/plugin/callbacks/args/script.py
diff --git a/tests/plugin/callback-args/stdout.txt
b/tests/plugin/callbacks/args/stdout.txt
similarity index 100%
rename from tests/plugin/callback-args/stdout.txt
rename to tests/plugin/callbacks/args/stdout.txt
diff --git a/tests/plugin/callback-exception/input.c
b/tests/plugin/callbacks/exception/input.c
similarity index 100%
rename from tests/plugin/callback-exception/input.c
rename to tests/plugin/callbacks/exception/input.c
diff --git a/tests/plugin/callback-exception/script.py
b/tests/plugin/callbacks/exception/script.py
similarity index 100%
rename from tests/plugin/callback-exception/script.py
rename to tests/plugin/callbacks/exception/script.py
diff --git a/tests/plugin/callbacks/exception/stderr.txt
b/tests/plugin/callbacks/exception/stderr.txt
new file mode 100644
index 0000000..939aa7d
--- /dev/null
+++ b/tests/plugin/callbacks/exception/stderr.txt
@@ -0,0 +1,5 @@
+tests/plugin/callbacks/exception/input.c:1:0: error: Unhandled Python exception raised
within callback
+Traceback (most recent call last):
+ File "tests/plugin/callbacks/exception/script.py", line 22, in my_callback
+ raise RuntimeError("This is a test of raising an exception")
+RuntimeError: This is a test of raising an exception
diff --git a/tests/plugin/callback-refs/input.c b/tests/plugin/callbacks/refs/input.c
similarity index 100%
rename from tests/plugin/callback-refs/input.c
rename to tests/plugin/callbacks/refs/input.c
diff --git a/tests/plugin/callback-refs/script.py b/tests/plugin/callbacks/refs/script.py
similarity index 100%
rename from tests/plugin/callback-refs/script.py
rename to tests/plugin/callbacks/refs/script.py
diff --git a/tests/plugin/callback-refs/stdout.txt
b/tests/plugin/callbacks/refs/stdout.txt
similarity index 100%
rename from tests/plugin/callback-refs/stdout.txt
rename to tests/plugin/callbacks/refs/stdout.txt
Show replies by date