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" >
|
<condition property="has.crashed" >
|
||||||
<resourcecontains resource="${output.file}" substring="Process crashed" />
|
<resourcecontains resource="${output.file}" substring="Process crashed" />
|
||||||
</condition>
|
</condition>
|
||||||
<antcall target="test-crashed"/>
|
<antcall target="check-for-crash"/>
|
||||||
<delete file="${archive.name}"/>
|
<delete file="${archive.name}"/>
|
||||||
<delete file="${output.file}"/>
|
<delete file="${output.file}"/>
|
||||||
</target>
|
</target>
|
||||||
<target name="test-crashed" if="has.crashed">
|
<target name="check-for-crash" if="has.crashed">
|
||||||
<exec executable="bash" >
|
<exec executable="bash" >
|
||||||
<arg value="-c" />
|
<arg value="-c" />
|
||||||
<arg value="tail -n 500 ${archive.name}" />
|
<arg value="tail -n 500 ${archive.name}" />
|
||||||
|
|
|
@ -23,6 +23,13 @@ public class TestUnit extends AndroidTestCase {
|
||||||
setName(suite + "/" + 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 {
|
static public void copyAssetsFromPackage(Context ctx) throws IOException {
|
||||||
copyAssetsFromPackage(ctx,"config_files");
|
copyAssetsFromPackage(ctx,"config_files");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue