aboutsummaryrefslogtreecommitdiff
path: root/tests/migration
diff options
context:
space:
mode:
authorStefan Hajnoczi <stefanha@redhat.com>2017-08-25 16:57:32 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2017-08-30 12:02:11 +0100
commit0ea47d0f36112f0f38661e2e430edf32737c7f43 (patch)
tree4028aba913573ab4fb5a4df125f36b87cc277d82 /tests/migration
parentc2d3189667409561772e8c1e5615c5166cd8aa2c (diff)
tests: migration/guestperf Python 2.6 argparse compatibility
Add the scripts/ directory to sys.path so Python 2.6 will be able to import argparse. Cc: Daniel P. Berrange <berrange@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Acked-by: John Snow <jsnow@redhat.com> Acked-by: Fam Zheng <famz@redhat.com> Message-id: 20170825155732.15665-4-stefanha@redhat.com Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/migration')
-rw-r--r--tests/migration/guestperf/shell.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/migration/guestperf/shell.py b/tests/migration/guestperf/shell.py
index 185c5697a6..7992459a97 100644
--- a/tests/migration/guestperf/shell.py
+++ b/tests/migration/guestperf/shell.py
@@ -18,12 +18,14 @@
#
-import argparse
-import fnmatch
import os
import os.path
-import platform
import sys
+sys.path.append(os.path.join(os.path.dirname(__file__),
+ '..', '..', '..', 'scripts'))
+import argparse
+import fnmatch
+import platform
from guestperf.hardware import Hardware
from guestperf.engine import Engine