blob: b8c4336af16b0becc29d1d74eae8ba3c0ed8800a [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) {
James Kuszmaul1cd3c2b2024-05-21 17:08:10 -070010 return absl::StrCat("../" AOS_REPO_NAME "/", path);
Austin Schuh373f1762021-06-02 21:07:09 -070011}
12
Stephan Pleinesf63bde82024-01-13 15:59:33 -080013} // namespace aos::testing