Skip to contentSkip to conversation

tests/gem_ctx_isoation: Add warn for newer gens.

PATCH In review Antonio Argenziano 2 participants 3 messages Sep 24, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/gem_ctx_isoation: Add warn for newer gens.

Add a warning to update test if GEN version is not recognized.

---
 tests/gem_ctx_isolation.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
tests/gem_ctx_isolation.c +3 -1
index 4325e1c2..bd07b141 100644
@@ -700,7 +700,9 @@ igt_main
 		igt_require(has_context_isolation);
 
 		gen = intel_gen(intel_get_drm_devid(fd));
-		//igt_ci_fail_on(gen > LAST_KNOWN_GEN);
+
+		igt_warn_on_f(gen > LAST_KNOWN_GEN,
+				"GEN not recognized! Test needs to be updated to run.");
 		igt_skip_on(gen > LAST_KNOWN_GEN);
 	}
 
Signature · 6 lines
2.16.2

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#1 lore raw

Ops, sorry wrong button.

Please ignore this.

Sorry,
Antonio

Quoted 14 lines · Antonio Argenziano

Add a warning to update test if GEN version is not recognized.

---
  tests/gem_ctx_isolation.c | 4 +++-
  1 file changed, 3 insertions(+), 1 deletion(-)
tests/gem_ctx_isolation.c +0 -0
index 4325e1c2..bd07b141 100644

tests/gem_ctx_isolation.c igt_main · line 708

Quoted 10 lines
tests/gem_ctx_isolation.c +3 -1
@@ -700,7 +700,9 @@ igt_main
  		igt_require(has_context_isolation);
 
  		gen = intel_gen(intel_get_drm_devid(fd));
-		//igt_ci_fail_on(gen > LAST_KNOWN_GEN);
+
+		igt_warn_on_f(gen > LAST_KNOWN_GEN,
+				"GEN not recognized! Test needs to be updated to run.");
  		igt_skip_on(gen > LAST_KNOWN_GEN);
  	}
 

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for tests/gem_ctx_isoation: Add warn for newer gens. (rev2)

In reply to Antonio Argenziano
== Series Details ==

== Series Details ==

Series: tests/gem_ctx_isoation: Add warn for newer gens. (rev2)
URL : https://patchwork.freedesktop.org/series/49296/
State : failure

== Summary ==

Applying: tests/gem_ctx_isoation: Add warn for newer gens. Using index info to reconstruct a base tree...
M tests/gem_ctx_isolation.c
Falling back to patching base and 3-way merge... Auto-merging tests/gem_ctx_isolation.c
CONFLICT (content): Merge conflict in tests/gem_ctx_isolation.c Patch failed at 0001 tests/gem_ctx_isoation: Add warn for newer gens. Use 'git am --show-current-patch' to see the failed patch When you have resolved this problem, run "git am --continue". If you prefer to skip this patch, run "git am --skip" instead. To restore the original branch and stop patching, run "git am --abort".

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev