Lines Matching refs:path

28 # debugfs path for hyperv must exist before proceeding
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)
121 # Validate argument path
122 def validate_args_path(path, arg_set, file_map):
124 if (not path and any(element in arg_set for element in single_actions)):
125 print("Error, path (-p) REQUIRED for the specified option. "
128 elif (path and any(item in arg_set for item in all_actions)):
129 print("Error, path (-p) NOT REQUIRED for the specified option. "
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):
140 for name in file_map[path]:
141 file_location = file_map[path][name]
145 # [key=device, value = [key = filename, value = file path]]
146 def recursive_file_lookup(path, file_map):
148 for f_path in glob.iglob(path + '**/*'):
149 if (os.path.isfile(f_path)):
159 elif (os.path.isdir(f_path)):
174 # read the vmbus device files, path must be absolute path before calling
175 def read_test_files(path):
177 with open(path,"r") as f:
184 .format(errno, strerror, path))
187 print ("Element to int conversion error in: \n{}".format(path))
190 # writing to vmbus device files, path must be absolute path before calling
191 def write_test_files(path, value):
194 with open(path,"w") as f:
199 .format(errno, strerror, path))
280 "information.\n" "\nThe debugfs root path is "
290 # Use the path parser to hold the --path attribute so it can
295 path_parser.add_argument("-p","--path", metavar = "",
296 help = "Debugfs path to a vmbus device. The path "
297 "must be the absolute path to the device.")