Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 1 | #include "aos/testing/path.h" |
Austin Schuh | 60e7794 | 2022-05-16 17:48:24 -0700 | [diff] [blame] | 2 | |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 3 | #include "absl/strings/str_cat.h" |
| 4 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame^] | 5 | namespace aos::testing { |
Austin Schuh | 373f176 | 2021-06-02 21:07:09 -0700 | [diff] [blame] | 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 | |
Stephan Pleines | f63bde8 | 2024-01-13 15:59:33 -0800 | [diff] [blame^] | 15 | } // namespace aos::testing |