Fixed format issue
@@ -26,7 +26,11 @@ logs = flogging.get_loggers()
try:
FILE_CONFIG = json.loads(open(fit_common.CONFIG_PATH + "fileserver_config.json").read())
except BaseException:
- logs.error("**** Global Config file: " + fit_common.CONFIG_PATH + "FILE_CONFIG.json" + " missing or corrupted! Exiting....")
+ logs.error(
+ "**** Global Config file: " +
+ fit_common.CONFIG_PATH +
+ "FILE_CONFIG.json" +
+ " missing or corrupted! Exiting....")
sys.exit(255)
@@ -44,7 +48,7 @@ class test_os_image_service(fit_common.unittest.TestCase):
def _mount_local_os_repo(self, file_name, mountpoint):
try:
- if os.path.exists(mountpoint) == False:
+ if os.path.exists(mountpoint) is False:
command = "mkdir " + mountpoint
os.popen(command)
# use fuseiso tool to mount without root privilege. user need install fuseiso before the test.
@@ -82,7 +86,6 @@ class test_os_image_service(fit_common.unittest.TestCase):
return True
return False
-
def _release(self, file_name, mountpoint):
try:
# use fusermount to umount the iso loaded by fuseiso without root privilege. User need intall it first.
@@ -297,7 +300,6 @@ class test_os_image_service(fit_common.unittest.TestCase):
logs.debug('My IP address is: ' + myip)
return myip
-
def test_create_os_repo_from_iso_upload(self):
for osrepo in FILE_CONFIG["os_image"]:
file_name = self._download_file(osrepo["url"])
