Make integration tests more portable
By avoiding paths that are too specific for a given system, and bringing
option arguments before non-option arguments.
Change-Id: I82acae94e2d9808c9e81a85018c6a0578da8bd42
PiperOrigin-RevId: 160957203
diff --git a/src/test/shell/integration/java_integration_test.sh b/src/test/shell/integration/java_integration_test.sh
index 7c4f5d2..82e0bb3 100755
--- a/src/test/shell/integration/java_integration_test.sh
+++ b/src/test/shell/integration/java_integration_test.sh
@@ -373,7 +373,7 @@
write_hello_library_files "$pkg"
bazel build //$pkg/java/main:main_deploy.jar || fail "build failed"
- touch old -r ${PRODUCT_NAME}-bin/$pkg/java/main/main_deploy.jar
+ touch -r ${PRODUCT_NAME}-bin/$pkg/java/main/main_deploy.jar old
bazel build //$pkg/java/main:main_deploy.jar || fail "build failed"
find ${PRODUCT_NAME}-bin/$pkg/java/main/main_deploy.jar -newer old \
| grep -q . && fail "file was rebuilt"