[TC Fixed] Change the 'find' command
[platform/core/dotnet/launcher.git] / tests / TCs / Utils.py
index 23f6f02..e4b8390 100755 (executable)
@@ -167,6 +167,14 @@ def check_library_arch(rootpath, library):
     subprocess.run((f"rm ./{library}").split(), encoding="utf-8", stdout=subprocess.PIPE).stdout
     return "OK"
 
+# Check if the file or directory exists
+def exist(path):
+    raw = cmd(f"shell find {path}")
+    if "No such file or directory" in raw:
+        return False
+    else:
+        return True
+
 # Run the test array
 def run_tc_array(module_name, tc_array):
     p = 0