Skip to content

Commit

Permalink
Update tw.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed May 16, 2023
1 parent fa157a0 commit 394aa1c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/test/windows/tw.cc
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,10 @@ bool ExportGtestVariables(const Path& test_tmpdir) {
}
if (total_shards_value > 0) {
std::wstring shard_index;
if (!GetEnv(L"TEST_SHARD_INDEX", &shard_index) ||
std::wstring shard_status_file;
if (!GetEnv(L"TEST_SHARD_STATUS_FILE", &shard_status_file) ||
!GetEnv(L"TEST_SHARD_INDEX", &shard_index) ||
!SetEnv(L"GTEST_SHARD_STATUS_FILE", shard_status_file) ||
!SetEnv(L"GTEST_SHARD_INDEX", shard_index) ||
!SetEnv(L"GTEST_TOTAL_SHARDS", total_shards_str)) {
return false;
Expand Down

0 comments on commit 394aa1c

Please sign in to comment.