Create test directories with correct permissions (2).
Fixed another instance that caused #testOpendirRestrictions
to fail.
Bug: 150467040
Test: atest FuseDaemonHostTest
Change-Id: I43724d4d6ac13755fb4662ecce9ea94e20022abc
diff --git a/tests/jni/FuseDaemonTest/host/src/com/android/tests/fused/host/FuseDaemonHostTest.java b/tests/jni/FuseDaemonTest/host/src/com/android/tests/fused/host/FuseDaemonHostTest.java
index 2825040..10b063a 100644
--- a/tests/jni/FuseDaemonTest/host/src/com/android/tests/fused/host/FuseDaemonHostTest.java
+++ b/tests/jni/FuseDaemonTest/host/src/com/android/tests/fused/host/FuseDaemonHostTest.java
@@ -49,14 +49,13 @@
@Before
public void setup() throws Exception {
- executeShellCommand("mkdir /sdcard/Android/data/com.android.shell");
- executeShellCommand("mkdir /sdcard/Android/data/com.android.shell/files");
+ executeShellCommand("mkdir /sdcard/Android/data/com.android.shell -m 2770");
+ executeShellCommand("mkdir /sdcard/Android/data/com.android.shell/files -m 2770");
}
@After
public void tearDown() throws Exception {
executeShellCommand("rm -r /sdcard/Android/data/com.android.shell");
- executeShellCommand("rm -r /sdcard/Android/data/com.android.shell/files");
}
@Test