Host openstack utils in SDNVPN
[sdnvpn.git] / sdnvpn / test / functest / tempest.py
index 8928e7c..d34af0b 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/python
 #
-# Copyright (c) 2015 All rights reserved
+# Copyright (c) 2017 All rights reserved
 # This program and the accompanying materials
 # are made available under the terms of the Apache License, Version 2.0
 # which accompanies this distribution, and is available at
@@ -9,14 +9,14 @@
 #
 #
 import ConfigParser
+import logging
 import os
 import re
 import shutil
 
-import functest.utils.functest_logger as ft_logger
 import functest.opnfv_tests.openstack.tempest.conf_utils as tempest_utils
 
-logger = ft_logger.Logger("sdnvpn-tempest").getLogger()
+logger = logging.getLogger('sdnvpn-tempest')
 
 
 def main():
@@ -80,7 +80,7 @@ def main():
         if int(failed) == 0:
             status = "PASS"
         else:
-            status = "FAILED"
+            status = "FAIL"
 
         return {"status": status, "details": results}
     except:
@@ -88,4 +88,5 @@ def main():
 
 
 if __name__ == '__main__':
+    logging.basicConfig(level=logging.INFO)
     main()