Code clean
This commit is contained in:
@@ -1,6 +1,3 @@
|
||||
import subprocess
|
||||
|
||||
|
||||
def check_gnome_favorite_apps(apps_str: str, rule):
|
||||
# parse the string like "['thunderbird.desktop', 'vim.desktop', 'google-chrome.desktop']"
|
||||
# to a list of strings
|
||||
@@ -57,6 +54,7 @@ def check_moved_jpgs(directory_list, rule):
|
||||
else:
|
||||
return 0
|
||||
|
||||
|
||||
def is_in_vm_clickboard(config, terminal_output):
|
||||
print("terminal_output: ")
|
||||
print(terminal_output)
|
||||
@@ -67,4 +65,4 @@ def is_in_vm_clickboard(config, terminal_output):
|
||||
if not isinstance(expected_results, list):
|
||||
return 1 if expected_results in terminal_output else 0
|
||||
else:
|
||||
return 1 if all(result in terminal_output for result in expected_results) else 0
|
||||
return 1 if all(result in terminal_output for result in expected_results) else 0
|
||||
|
||||
Reference in New Issue
Block a user