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

Change-Id: I813eb34c62341294e9e4f7952587b277387a3e9f
This commit is contained in:
Elliott Hughes authored and Automerger Merge Worker committed 2020-03-19 19:24:47 +00:00
commit 64f9faac54
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)
}