update to bc_tester obsoleting --config option.
This commit is contained in:
parent
86faa28a33
commit
4c315e566c
2 changed files with 2 additions and 2 deletions
|
@ -25,7 +25,7 @@ public class LogsActivity extends Activity {
|
||||||
public void run() {
|
public void run() {
|
||||||
String path = mLogsActivity.getFilesDir().getAbsolutePath()+"/config_files";
|
String path = mLogsActivity.getFilesDir().getAbsolutePath()+"/config_files";
|
||||||
tester = new TesterLogger(mLogsActivity);
|
tester = new TesterLogger(mLogsActivity);
|
||||||
List<String> list = new LinkedList<String>(Arrays.asList(new String[]{"tester", "--verbose", "--config", path}));
|
List<String> list = new LinkedList<String>(Arrays.asList(new String[]{"tester", "--verbose", "--resource-dir", path}));
|
||||||
list.addAll(Arrays.asList(mArgs));
|
list.addAll(Arrays.asList(mArgs));
|
||||||
String[] array = list.toArray(new String[list.size()]);
|
String[] array = list.toArray(new String[list.size()]);
|
||||||
tester.run(array);
|
tester.run(array);
|
||||||
|
|
|
@ -80,7 +80,7 @@ public class TestUnit extends AndroidTestCase {
|
||||||
protected void runTest() {
|
protected void runTest() {
|
||||||
String path = getContext().getFilesDir().getPath()+"/config_files";
|
String path = getContext().getFilesDir().getPath()+"/config_files";
|
||||||
Tester tester = new Tester();
|
Tester tester = new Tester();
|
||||||
List<String> list = new LinkedList<String>(Arrays.asList(new String[]{"tester", "--verbose", "--config", path, "--suite", mSuite, "--test", mTest}));
|
List<String> list = new LinkedList<String>(Arrays.asList(new String[]{"tester", "--verbose", "--resource-dir", path, "--suite", mSuite, "--test", mTest}));
|
||||||
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