fire up your command list of test(s) you want to iterate on
will run to completion, and when there are changes it will rerun
Bug:
171749953
Tag: #gd-refactor
Test: gd/cert/irun --rhost
Change-Id: Ic067f70e00740bc5588bdd8b9ac334e834fdb238
--- /dev/null
+import pyinotify
+import sys
+
+wm = pyinotify.WatchManager()
+mask = pyinotify.IN_DELETE | pyinotify.IN_CREATE | pyinotify.IN_MODIFY
+
+
+class EventHandler(pyinotify.ProcessEvent):
+
+ def process_default(self, event):
+ quit()
+
+
+handler = EventHandler()
+notifier = pyinotify.Notifier(wm, handler)
+wdd = wm.add_watch(sys.argv[1], mask, rec=True)
+
+notifier.loop()
--- /dev/null
+#! /bin/bash
+# interactive version of run
+
+trap "exit;" SIGINT SIGTERM
+
+while true
+do
+ ${ANDROID_BUILD_TOP}/system/bt/gd/cert/run "$@"
+ python3 ${ANDROID_BUILD_TOP}/system/bt/gd/cert/change_waiter.py ${ANDROID_BUILD_TOP}/system/bt
+done