Skip to content

Commit cf73135

Browse files
committed
Removed Android channel filtering
1 parent de71c18 commit cf73135

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

scripts/android/tests/Cn1ssChunkTools.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public static void main(String[] args) throws Exception {
3636
private static void runCount(String[] args) throws IOException {
3737
Path path = null;
3838
String test = null;
39-
String channel = DEFAULT_CHANNEL;
39+
String channel = null;
4040
for (int i = 0; i < args.length; i++) {
4141
switch (args[i]) {
4242
case "--test" -> {
@@ -73,7 +73,7 @@ private static void runExtract(String[] args) throws IOException {
7373
Path path = null;
7474
boolean decode = false;
7575
String test = null;
76-
String channel = DEFAULT_CHANNEL;
76+
String channel = null;
7777
for (int i = 0; i < args.length; i++) {
7878
switch (args[i]) {
7979
case "--decode" -> decode = true;
@@ -129,7 +129,7 @@ private static void runTests(String[] args) throws IOException {
129129
}
130130
Path path = Path.of(args[0]);
131131
List<String> names = new ArrayList<>();
132-
for (Chunk chunk : iterateChunks(path, Optional.empty(), Optional.of(DEFAULT_CHANNEL))) {
132+
for (Chunk chunk : iterateChunks(path, Optional.empty(), Optional.empty())) {
133133
if (!names.contains(chunk.testName)) {
134134
names.add(chunk.testName);
135135
}
@@ -139,7 +139,6 @@ private static void runTests(String[] args) throws IOException {
139139
System.out.println(name);
140140
}
141141
}
142-
143142
private static Iterable<Chunk> iterateChunks(Path path, Optional<String> testFilter, Optional<String> channelFilter) throws IOException {
144143
String text = Files.readString(path, StandardCharsets.UTF_8);
145144
List<Chunk> result = new ArrayList<>();

0 commit comments

Comments
 (0)