[Bf-blender-cvs] [b3adbd8ed83] soc-2020-io-performance: Fix test to not use Ankit's directory name.
Howard Trickey
noreply at git.blender.org
Sun Apr 18 22:16:30 CEST 2021
Commit: b3adbd8ed83d99e0faa456077138d15977ce942a
Author: Howard Trickey
Date: Sat Apr 17 08:02:44 2021 -0400
Branches: soc-2020-io-performance
https://developer.blender.org/rBb3adbd8ed83d99e0faa456077138d15977ce942a
Fix test to not use Ankit's directory name.
===================================================================
M source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
===================================================================
diff --git a/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc b/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
index eec9749b443..3aa405f5b86 100644
--- a/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
+++ b/source/blender/io/wavefront_obj/tests/obj_exporter_tests.cc
@@ -186,8 +186,8 @@ static std::unique_ptr<OBJWriter> init_writer(const OBJExportParams ¶ms,
}
}
-const char *const temp_file_path =
- "/Users/ankitkumar/blender-build/build_darwin_lite/Testing/output.OBJ";
+/* The following is relative to the flags_test_release_dir(). */
+const char *const temp_file_path = "Testing/output.OBJ";
static std::string read_temp_file_in_string(const std::string &file_path)
{
@@ -201,6 +201,7 @@ TEST(obj_exporter_writer, header)
{
{
OBJExportParamsDefault _export;
+ std::string out_file_path = blender::tests::flags_test_release_dir() + "/" + temp_file_path;
std::unique_ptr<OBJWriter> writer = init_writer(_export.params, temp_file_path);
if (!writer) {
ADD_FAILURE();
More information about the Bf-blender-cvs
mailing list