Skip to content

Commit 0e429d9

Browse files
Bug 1108008 - Fix the destination path for the dialer and calendar reference workloads' databases r=jhylands
1 parent d6395d0 commit 0e429d9

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

test_media/reference-workload/makeReferenceWorkload.sh

+9-2
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,13 @@ IDB_BASE=
8585
for dir in /data/local/storage/permanent /data/local/storage/persistent /data/local/indexedDB; do
8686
if [ -n "$(adb shell "test -d $dir/chrome && echo found")" ]; then
8787
IDB_BASE=$dir
88+
89+
if [ "$IDB_BASE" == "/data/local/storage/permanent" ]; then
90+
IDB_DEFAULT_BASE=/data/local/storage/default
91+
else
92+
IDB_DEFAULT_BASE="$IDB_BASE"
93+
fi
94+
8895
break
8996
fi
9097
done
@@ -125,7 +132,7 @@ for app in $APPS; do
125132
echo "Unable to determine communications application ID - skipping dialer history..."
126133
LINE=" Dialer History: skipped"
127134
else
128-
adb push $SCRIPT_DIR/dialerDb-$DIALER_COUNT.sqlite $IDB_BASE/$DIALER_DIR$IDB_PATH/2584670174dsitanleecreR.sqlite || exit 1
135+
adb push $SCRIPT_DIR/dialerDb-$DIALER_COUNT.sqlite $IDB_DEFAULT_BASE/$DIALER_DIR$IDB_PATH/2584670174dsitanleecreR.sqlite || exit 1
129136
LINE=" Dialer History: $(printf "%4d" $DIALER_COUNT)"
130137
fi
131138
;;
@@ -187,7 +194,7 @@ for app in $APPS; do
187194
echo "Unable to determine calendar application ID - skipping calendar..."
188195
LINE=" Calendar: skipped"
189196
else
190-
adb push $SCRIPT_DIR/calendarDb-$CAL_COUNT.sqlite $IDB_BASE/$CAL_DIR$IDB_PATH/125582036br2agd-nceal.sqlite || exit 1
197+
adb push $SCRIPT_DIR/calendarDb-$CAL_COUNT.sqlite $IDB_DEFAULT_BASE/$CAL_DIR$IDB_PATH/125582036br2agd-nceal.sqlite || exit 1
191198
LINE=" Calendar: $(printf "%4d" $CAL_COUNT)"
192199
fi
193200
fi

0 commit comments

Comments
 (0)