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

Commit fb48f85e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Fix camera stress tests directory"

parents c6479fd8 36952ab0
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()));