diff --git a/e2e/smoke/BUILD.bazel b/e2e/smoke/BUILD.bazel index 3e4763ea6..c8cdc31bc 100644 --- a/e2e/smoke/BUILD.bazel +++ b/e2e/smoke/BUILD.bazel @@ -116,11 +116,17 @@ copy_directory( sh_test( name = "test_preserve_mtime", + size = "small", srcs = ["test_preserve_mtime.sh"], data = [ "d", - ":copy_to_directory_mtime_case", ":copy_directory_mtime_case", + ":copy_to_directory_mtime_case", ], - size = "small", + # on macos, fails with + # stat: illegal option -- - + # usage: stat [-FLnq] [-f format | -l | -r | -s | -x] [-t timefmt] [file ...] + # on windows, fails with + # stat: cannot stat 'd/1': No such file or directory + exec_compatible_with = ["@platforms//os:linux"], ) diff --git a/e2e/smoke/MODULE.bazel b/e2e/smoke/MODULE.bazel index 458874679..f09a092e9 100644 --- a/e2e/smoke/MODULE.bazel +++ b/e2e/smoke/MODULE.bazel @@ -5,3 +5,4 @@ local_path_override( ) bazel_dep(name = "bazel_skylib", version = "1.5.0", dev_dependency = True) +bazel_dep(name = "platforms", version = "0.0.8", dev_dependency = True)