blob: cb17c73fe969d331ca4a9a1f857da1eb2a922da5 [file] [log] [blame]
Austin Schuh373f1762021-06-02 21:07:09 -07001#include "aos/testing/path.h"
Austin Schuh60e77942022-05-16 17:48:24 -07002
Austin Schuh373f1762021-06-02 21:07:09 -07003#include "absl/strings/str_cat.h"
4
Stephan Pleinesf63bde82024-01-13 15:59:33 -08005namespace aos::testing {
Austin Schuh373f1762021-06-02 21:07:09 -07006
7// Returns the path to the provided artifact which works when built both as an
8// external target and in the repo.
9std::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 Pleinesf63bde82024-01-13 15:59:33 -080015} // namespace aos::testing