Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
udp_echo: fix cut-through server mode
[vpp.git]
/
test
/
test_jvpp.py
diff --git
a/test/test_jvpp.py
b/test/test_jvpp.py
index
c3b9357
..
36dbdb2
100644
(file)
--- a/
test/test_jvpp.py
+++ b/
test/test_jvpp.py
@@
-2,16
+2,18
@@
import os
import subprocess
import os
import subprocess
+import unittest
-from framework import VppTestCase
+from framework import VppTestCase
, running_extended_tests
# Api files path
# Api files path
-API_FILES_PATH = "
vpp/vpp-
api/java"
+API_FILES_PATH = "
j
api/java"
# Registry jar file name prefix
REGISTRY_JAR_PREFIX = "jvpp-registry"
# Registry jar file name prefix
REGISTRY_JAR_PREFIX = "jvpp-registry"
+@unittest.skipUnless(running_extended_tests(), "part of extended tests")
class TestJVpp(VppTestCase):
""" JVPP Core Test Case """
class TestJVpp(VppTestCase):
""" JVPP Core Test Case """
@@
-106,9
+108,16
@@
class TestJVpp(VppTestCase):
REGISTRY_JAR_PREFIX, version)
self.logger.info("JVpp Registry jar path : {0}"
.format(registry_jar_path))
REGISTRY_JAR_PREFIX, version)
self.logger.info("JVpp Registry jar path : {0}"
.format(registry_jar_path))
+ if (not os.path.isfile(registry_jar_path)):
+ raise Exception(
+ "JVpp Registry jar has not been found: {0}"
+ .format(registry_jar_path))
api_jar_path = self.full_jar_name(install_dir, api_jar_name, version)
self.logger.info("Api jar path : {0}".format(api_jar_path))
api_jar_path = self.full_jar_name(install_dir, api_jar_name, version)
self.logger.info("Api jar path : {0}".format(api_jar_path))
+ if (not os.path.isfile(api_jar_path)):
+ raise Exception(
+ "Api jar has not been found: {0}".format(api_jar_path))
# passes shm prefix as parameter to create connection with same value
command = ["java", "-cp",
# passes shm prefix as parameter to create connection with same value
command = ["java", "-cp",