better naming for lib linphone tester test for crashed process
This commit is contained in:
parent
025e8d74a8
commit
8cd0dc0842
2 changed files with 10 additions and 3 deletions
|
@ -48,11 +48,11 @@
|
|||
<condition property="has.crashed" >
|
||||
<resourcecontains resource="${output.file}" substring="Process crashed" />
|
||||
</condition>
|
||||
<antcall target="test-crashed"/>
|
||||
<antcall target="check-for-crash"/>
|
||||
<delete file="${archive.name}"/>
|
||||
<delete file="${output.file}"/>
|
||||
</target>
|
||||
<target name="test-crashed" if="has.crashed">
|
||||
<target name="check-for-crash" if="has.crashed">
|
||||
<exec executable="bash" >
|
||||
<arg value="-c" />
|
||||
<arg value="tail -n 500 ${archive.name}" />
|
||||
|
|
|
@ -22,7 +22,14 @@ public class TestUnit extends AndroidTestCase {
|
|||
mTest = test;
|
||||
setName(suite + "/" + test);
|
||||
}
|
||||
|
||||
|
||||
public TestUnit(String name) {
|
||||
String[] tab = name.split("/");
|
||||
mSuite = tab[0];
|
||||
mTest = tab[1];
|
||||
setName(name);
|
||||
}
|
||||
|
||||
static public void copyAssetsFromPackage(Context ctx) throws IOException {
|
||||
copyAssetsFromPackage(ctx,"config_files");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue