fixing find command to not delete hidden file
find command was deleting hidden files which it should not
have done. Updating the regex to not delete those.
Test: None
Bug: 147614325
Change-Id: I96754a7304b1d6547d735c22cc615aab098a2c9d
diff --git a/acts/framework/acts/test_utils/tel/tel_test_utils.py b/acts/framework/acts/test_utils/tel/tel_test_utils.py
index bd5997c..e8aecf4 100644
--- a/acts/framework/acts/test_utils/tel/tel_test_utils.py
+++ b/acts/framework/acts/test_utils/tel/tel_test_utils.py
@@ -6951,7 +6951,7 @@
seconds = 15 * 60
# Remove sdm logs modified more than specified seconds ago
ad.adb.shell(
- "find %s -type f -iname *.sdm* -not -mtime -%ss -delete" %
+ "find %s -type f -iname [!.]*.sdm* -not -mtime -%ss -delete" %
(ad.sdm_log_path, seconds))
# start logging
cmd = "setprop vendor.sys.modem.logging.enable true"
@@ -8614,4 +8614,4 @@
ad.log.error("Failed to register or activate call forwarding %s to %s." %
(call_forwarding_type, forwarded_number))
- return False
\ No newline at end of file
+ return False