Lines Matching refs:path
30 if not os.path.isdir(debugfs_hyperv_path):
78 path = args.path if "path" in arg_set else None
79 if (path and path[-1] == "/"):
80 path = path[:-1]
81 validate_args_path(path, arg_set, file_map)
82 if (path and "enable_single" in arg_set):
83 state_path = locate_state(path, file_map)
93 set_delay_values(path, file_map, args.delay_time,
98 disable_testing_single_device(path, file_map)
102 get_device_test_values(path, file_map)
122 def validate_args_path(path, arg_set, file_map): argument
124 if (not path and any(element in arg_set for element in single_actions)):
128 elif (path and any(item in arg_set for item in all_actions)):
132 elif (path not in file_map and any(item in arg_set
134 print("Error, path '{}' not a valid vmbus device".format(path))
138 def get_device_test_values(path, file_map): argument
140 for name in file_map[path]:
141 file_location = file_map[path][name]
146 def recursive_file_lookup(path, file_map): argument
148 for f_path in glob.iglob(path + '**/*'):
149 if (os.path.isfile(f_path)):
159 elif (os.path.isdir(f_path)):
175 def read_test_files(path): argument
177 with open(path,"r") as f:
184 .format(errno, strerror, path))
187 print ("Element to int conversion error in: \n{}".format(path))
191 def write_test_files(path, value): argument
194 with open(path,"w") as f:
199 .format(errno, strerror, path))