Create the /system/framework directory when running under chroot.
adb push doesn't create a directory when it is empty on the host side.
Bug: 152339517
Test: run-gtests.sh
Change-Id: Ifafed06767ab39375aca0b6f1d2329890c4ef1ad
diff --git a/tools/buildbot-sync.sh b/tools/buildbot-sync.sh
index de83c50..8bf6885 100755
--- a/tools/buildbot-sync.sh
+++ b/tools/buildbot-sync.sh
@@ -127,3 +127,6 @@
echo -e "${green}Syncing data directory...${nc}"
adb shell mkdir -p "$ART_TEST_CHROOT/data"
adb push "$ANDROID_PRODUCT_OUT/data" "$ART_TEST_CHROOT/"
+
+# Create the framework directory if it doesn't exist. Some gtests need it.
+adb shell mkdir -p "$ART_TEST_CHROOT/system/framework"