From: Tvrtko Ursulin <tursulin@ursulin.net>
To: Intel-gfx@lists.freedesktop.org
Subject: [PATCH i-g-t] igt_core: Skip sync when listing subtests
Date: Fri, 21 Jul 2017 14:00:27 +0100 [thread overview]
Message-ID: <20170721130027.3775-1-tvrtko.ursulin@linux.intel.com> (raw)
From: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
No need to sync filesystems when only listing subtest.
Extremely marginal benefit of avoid a short stall after make
followed by listing subtests.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
---
lib/igt_core.h | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/igt_core.h b/lib/igt_core.h
index 6c55c04b7de0..24f308477049 100644
--- a/lib/igt_core.h
+++ b/lib/igt_core.h
@@ -257,9 +257,10 @@ void __igt_subtest_group_restore(int);
#define igt_main \
static void igt_tokencat(__real_main, __LINE__)(void); \
int main(int argc, char **argv) { \
- sync(); \
igt_subtest_init_parse_opts(&argc, argv, NULL, NULL, NULL, \
NULL, NULL); \
+ if (!igt_only_list_subtests()) \
+ sync(); \
igt_tokencat(__real_main, __LINE__)(); \
igt_exit(); \
} \
@@ -298,9 +299,10 @@ void igt_simple_init_parse_opts(int *argc, char **argv,
#define igt_simple_main \
static void igt_tokencat(__real_main, __LINE__)(void); \
int main(int argc, char **argv) { \
- sync(); \
igt_simple_init_parse_opts(&argc, argv, NULL, NULL, NULL, \
NULL, NULL); \
+ if (!igt_only_list_subtests()) \
+ sync(); \
igt_tokencat(__real_main, __LINE__)(); \
igt_exit(); \
} \
--
2.9.4
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx
next reply other threads:[~2017-07-21 13:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-21 13:00 Tvrtko Ursulin [this message]
2017-07-21 13:17 ` [PATCH i-g-t] igt_core: Skip sync when listing subtests Chris Wilson
2017-07-21 14:08 ` Tvrtko Ursulin
2017-09-05 10:38 ` [PATCH i-g-t v2] " Tvrtko Ursulin
2017-09-05 10:46 ` Chris Wilson
2017-09-05 10:59 ` ✓ Fi.CI.BAT: success for igt_core: Skip sync when listing subtests (rev2) Patchwork
2017-09-05 12:37 ` ✗ Fi.CI.IGT: failure " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170721130027.3775-1-tvrtko.ursulin@linux.intel.com \
--to=tursulin@ursulin.net \
--cc=Intel-gfx@lists.freedesktop.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox