Commit ccd86d84 authored by Asanka Herath's avatar Asanka Herath Committed by Commit Bot

[net] Fix default test data path.

The test data directory for testserver.py defaults to
"../../../../test/data" which is outside the repository. Instead point
it at "../../data" which is where the test data for //net is located.

Bug: None
Change-Id: I6dd8c69ce9c1e12a0c031ab5a41a09fc4556e2e9
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1732694Reviewed-by: default avatarLily Chen <chlily@chromium.org>
Commit-Queue: Asanka Herath <asanka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#683599}
parent fff47081
...@@ -1874,11 +1874,7 @@ class ServerRunner(testserver_base.TestServerRunner): ...@@ -1874,11 +1874,7 @@ class ServerRunner(testserver_base.TestServerRunner):
my_data_dir = self.options.data_dir my_data_dir = self.options.data_dir
else: else:
# Create the default path to our data dir, relative to the exe dir. # Create the default path to our data dir, relative to the exe dir.
my_data_dir = os.path.join(BASE_DIR, "..", "..", "..", "..", my_data_dir = os.path.join(BASE_DIR, "..", "..", "data")
"test", "data")
#TODO(ibrar): Must use Find* funtion defined in google\tools
#i.e my_data_dir = FindUpward(my_data_dir, "test", "data")
return my_data_dir return my_data_dir
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment