diff mbox

[i-g-t] tests/drv_suspend: Skip */crc/* in debugfs-reader

Message ID 1486389538-7172-1-git-send-email-petri.latvala@intel.com (mailing list archive)
State New, archived
Headers show

Commit Message

Petri Latvala Feb. 6, 2017, 1:58 p.m. UTC
Reading the CRC files in debugfs will never
terminate. drv_suspend/debugfs-reader will leave a cat process around
which blocks all other access to the device until manually killed if
CRC files are not omitted.

Signed-off-by: Petri Latvala <petri.latvala@intel.com>
---
 tests/drv_suspend.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox

Patch

diff --git a/tests/drv_suspend.c b/tests/drv_suspend.c
index 0a459e3..1d7cc1f 100644
--- a/tests/drv_suspend.c
+++ b/tests/drv_suspend.c
@@ -111,7 +111,7 @@  test_debugfs_reader(bool hibernate)
 		static char tmp[1024];
 
 		snprintf(tmp, sizeof(tmp) - 1,
-			 "while true; do find %s/%i/ -type f | xargs cat > /dev/null 2>&1; done",
+			 "while true; do find %s/%i/ -type f ! -path \"*/crc/*\" | xargs cat > /dev/null 2>&1; done",
 			 dfs_base, drm_get_card());
 		igt_assert(execl("/bin/sh", "sh", "-c", tmp, (char *) NULL) != -1);
 	}