Merge "Run bsdiff tests in presubmit." am: 69e0da7fdb am: 7ecc00a844 am: 64f9faac54 am: e3f693a705

Change-Id: Iccdad42f82abe094473f99818a8581911074757f
This commit is contained in:
Elliott Hughes authored and Automerger Merge Worker committed 2020-03-19 20:17:12 +00:00
commit 770ad01154
2 files changed
+9 -5

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
{
"presubmit": [
{
"name": "bsdiff_unittest"
}
]
}
+2 -5
View File
@@ -53,11 +53,8 @@ namespace test_utils {
void BsdiffTestEnvironment::SetUp() {
#ifdef BSDIFF_TARGET_UNITTEST
#define BSDIFF_TARGET_TMP_BASE "/data/tmp"
if (access(BSDIFF_TARGET_TMP_BASE, F_OK) == -1) {
mkdir(BSDIFF_TARGET_TMP_BASE, S_IRWXU | S_IRWXG | S_IROTH | S_IWOTH);
}
setenv("TMPDIR", BSDIFF_TARGET_TMP_BASE, 1);
#define BSDIFF_TARGET_TMP_BASE "/data/local/tmp"
setenv("TMPDIR", BSDIFF_TARGET_TMP_BASE, 1);
#endif // defined (BSDIFF_TARGET_UNITTEST)
}