Fix liblinphone_tester's GUI's 'All' buttons
This commit is contained in:
parent
f7c1e67b2e
commit
2268568e3a
1 changed files with 6 additions and 1 deletions
|
@ -82,7 +82,12 @@ public class TestUnit extends AndroidTestCase {
|
||||||
String write_path = getContext().getCacheDir().getPath();
|
String write_path = getContext().getCacheDir().getPath();
|
||||||
Tester tester = new Tester();
|
Tester tester = new Tester();
|
||||||
|
|
||||||
List<String> list = new LinkedList<String>(Arrays.asList(new String[]{"tester", "--verbose", "--resource-dir", res_path, "--writable-dir", write_path, "--suite", mSuite, "--test", mTest}));
|
List<String> list;
|
||||||
|
if (mTest != null && !mTest.isEmpty()) {
|
||||||
|
list = new LinkedList<String>(Arrays.asList(new String[]{"tester", "--verbose", "--resource-dir", res_path, "--writable-dir", write_path, "--suite", mSuite, "--test", mTest}));
|
||||||
|
} else {
|
||||||
|
list = new LinkedList<String>(Arrays.asList(new String[]{"tester", "--verbose", "--resource-dir", res_path, "--writable-dir", write_path, "--suite", mSuite}));
|
||||||
|
}
|
||||||
String[] array = list.toArray(new String[list.size()]);
|
String[] array = list.toArray(new String[list.size()]);
|
||||||
Assert.assertTrue(tester.run(array) == 0);
|
Assert.assertTrue(tester.run(array) == 0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue