diff --git a/.github/actions/run-build/action.yml b/.github/actions/run-build/action.yml index 4077fe00c..22d81fb0a 100644 --- a/.github/actions/run-build/action.yml +++ b/.github/actions/run-build/action.yml @@ -42,7 +42,6 @@ runs: -e CMAKE_OPTIONS \ -e CMAKE_GLOBAL_OPTIONS \ -e GITTEST_NEGOTIATE_PASSWORD \ - -e GITTEST_FLAKY_STAT \ -e PKG_CONFIG_PATH \ -e SKIP_NEGOTIATE_TESTS \ -e SKIP_SSH_TESTS \ diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index d7a6c64c9..d2059cd35 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -282,7 +282,6 @@ jobs: RUN_INVASIVE_TESTS: true SKIP_PROXY_TESTS: true SKIP_PUSHOPTIONS_TESTS: true - GITTEST_FLAKY_STAT: true os: ubuntu-latest - name: "Linux (arm64, Bionic, GCC, OpenSSL)" id: bionic-arm64-gcc-openssl diff --git a/tests/libgit2/diff/workdir.c b/tests/libgit2/diff/workdir.c index 602460908..36eb9a9d3 100644 --- a/tests/libgit2/diff/workdir.c +++ b/tests/libgit2/diff/workdir.c @@ -1291,8 +1291,7 @@ void test_diff_workdir__can_diff_empty_file(void) cl_git_pass(git_fs_path_lstat("attr_index/README.txt", &st)); - if (!cl_is_env_set("GITTEST_FLAKY_STAT")) - cl_assert_equal_sz(0, st.st_size); + cl_assert_equal_sz(0, st.st_size); cl_git_pass(git_diff_tree_to_workdir(&diff, g_repo, tree, &opts)); cl_assert_equal_i(3, (int)git_diff_num_deltas(diff)); diff --git a/tests/util/copy.c b/tests/util/copy.c index 2613730ba..7ea5d6a39 100644 --- a/tests/util/copy.c +++ b/tests/util/copy.c @@ -14,8 +14,7 @@ void test_copy__file(void) cl_git_pass(git_fs_path_lstat("copy_me_two", &st)); cl_assert(S_ISREG(st.st_mode)); - if (!cl_is_env_set("GITTEST_FLAKY_STAT")) - cl_assert_equal_sz(strlen(content), (size_t)st.st_size); + cl_assert_equal_sz(strlen(content), (size_t)st.st_size); cl_git_pass(p_unlink("copy_me_two")); cl_git_pass(p_unlink("copy_me")); @@ -41,8 +40,7 @@ void test_copy__file_in_dir(void) cl_git_pass(git_fs_path_lstat("an_dir/second_dir/and_more/copy_me_two", &st)); cl_assert(S_ISREG(st.st_mode)); - if (!cl_is_env_set("GITTEST_FLAKY_STAT")) - cl_assert_equal_sz(strlen(content), (size_t)st.st_size); + cl_assert_equal_sz(strlen(content), (size_t)st.st_size); cl_git_pass(git_futils_rmdir_r("an_dir", NULL, GIT_RMDIR_REMOVE_FILES)); cl_assert(!git_fs_path_isdir("an_dir")); @@ -105,8 +103,7 @@ void test_copy__tree(void) cl_git_pass(git_fs_path_lstat("t1/c/f3", &st)); cl_assert(S_ISREG(st.st_mode)); - if (!cl_is_env_set("GITTEST_FLAKY_STAT")) - cl_assert_equal_sz(strlen(content), (size_t)st.st_size); + cl_assert_equal_sz(strlen(content), (size_t)st.st_size); #ifndef GIT_WIN32 memset(&st, 0, sizeof(struct stat));