Signed-off-by: Jiří Župka <[email protected]>
---
client/bin/parallel.py | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/client/bin/parallel.py b/client/bin/parallel.py
index cb02082..78a02c9 100644
--- a/client/bin/parallel.py
+++ b/client/bin/parallel.py
@@ -56,7 +56,12 @@ def fork_start(tmp, l):
def _check_for_subprocess_exception(temp_dir, pid):
ename = temp_dir + "/debug/error-%d" % pid
if os.path.exists(ename):
- e = pickle.load(file(ename, 'r'))
+ try:
+ e = pickle.load(file(ename, 'r'))
+ except ImportError:
+ logging.error("Unknown exception to unpickle. Exception must be"
+ " defined in error module.")
+ raise
# rename the error-pid file so that they do not affect later child
# processes that use recycled pids.
i = 0
--
1.7.7.3
_______________________________________________
Autotest mailing list
[email protected]
http://test.kernel.org/cgi-bin/mailman/listinfo/autotest