Skip to content

Commit 93ee5b9

Browse files
authored
[SYCL] Discard unsupported platforms output in sycl-ls test (#15311)
Make sure that the devices that belong to unsupported platforms are not counted, this is required to match the number of devices when `sycl-ls` is run in and out of the `verbose` mode.
1 parent de4851c commit 93ee5b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/test-e2e/Plugin/sycl-ls.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: sycl-ls --verbose | grep "Device \[" | wc -l >%t.verbose.out
1+
// RUN: sycl-ls --verbose | awk '{print}/Unsupported Platforms:/{exit}' | grep "Device \[" | wc -l >%t.verbose.out
22
// RUN: sycl-ls | wc -l >%t.concise.out
33
// RUN: diff %t.verbose.out %t.concise.out
44

0 commit comments

Comments
 (0)