Merge "Run bsdiff tests in presubmit."

This commit is contained in:
Elliott Hughes authored and Gerrit Code Review committed 2020-03-19 18:40:37 +00:00
commit 69e0da7fdb
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)
}