Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 36952ab0 authored by Ying Liu's avatar Ying Liu
Browse files

Fix camera stress tests directory

Test: build apk locally and run,  test pass
Bug: 124237534
Change-Id: I077ccf55996f8fac568d3a617e2ffdbfccdf14aa
parent 4f3f18de
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -40,14 +40,14 @@ public class CameraTestResultPrinter {
    private Instrumentation mInst = null;
    private boolean mWriteToFile = true;


    public CameraTestResultPrinter(Instrumentation instrumentation, boolean writeToFile) {
        mInst = instrumentation;
        mWriteToFile = writeToFile;

        // Create a log directory if not exists.
        File baseDir = new File(RESULT_DIR);
        if (!baseDir.exists() && !baseDir.mkdirs()) {
        baseDir.mkdirs();
        if (!baseDir.isDirectory()) {
            throw new IllegalStateException("Couldn't create directory for logs: " + baseDir);
        }
        Log.v(TAG, String.format("Saving test results under: %s", baseDir.getAbsolutePath()));