From e21e641442c0fcd03ba464c9c24d5a4208035a21 Mon Sep 17 00:00:00 2001 From: stanley31huang Date: Fri, 10 Jan 2025 10:00:33 +0800 Subject: [PATCH] fix flake8 issue fix flake8 issue --- .../checkbox-provider-ce-oem/bin/rpyc_client.py | 2 +- .../checkbox-provider-ce-oem/bin/rpyc_test_methods.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_client.py b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_client.py index 135dade0c2..c678c43221 100755 --- a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_client.py +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_client.py @@ -33,7 +33,7 @@ def rpyc_client(host, cmd, *args, **kwargs): wrap = rpyc.async_(func) res = wrap(*args, **kwargs) while res.ready: - print("Waiting for RPYC server complete %s".format(func)) + print("Waiting for RPYC server complete {}".format(func)) time.sleep(1) break if getattr(res._conn.root, "logs"): diff --git a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_test_methods.py b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_test_methods.py index 93a72e1ff9..d22af8d3b6 100755 --- a/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_test_methods.py +++ b/contrib/checkbox-ce-oem/checkbox-provider-ce-oem/bin/rpyc_test_methods.py @@ -87,6 +87,8 @@ def usb_storage_test(usb_type): ) watcher.run_storage(mounted_partition) # usb_read_write been imported in run_watcher - # the temporary mount point been created while import it and been removed in gen_random_file function - # thus, we need to reload it to create temporary mount point in every testing cycle + # the temporary mount point been created while import it + # and the directory been removed in gen_random_file function + # thus, we need to reload it to create temporary mount point + # in every testing cycle reload(usb_read_write)