Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 1 | #include "aos/testing/path.h" |
| 2 | #include "absl/strings/str_cat.h" |
| 3 | |
| 4 | namespace aos { |
| 5 | namespace testing { |
| 6 | |
| 7 | // Returns the path to the provided artifact which works when built both as an |
| 8 | // external target and in the repo. |
| 9 | std::string ArtifactPath(std::string_view path) { |
| 10 | // TODO(austin): Don't hard-code the repo name here since it likely will |
| 11 | // change. |
| 12 | return absl::StrCat("../org_frc971/", path); |
| 13 | } |
| 14 | |
| 15 | } // namespace testing |
| 16 | } // namespace aos |