Fixed unit tests to work in any time zone

This commit is contained in:
Pierre-Olivier Latour
2014-04-15 00:29:56 -03:00
parent 46ee1a48d6
commit 5842149d4b
76 changed files with 119 additions and 119 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ PAYLOAD_DIR="/tmp/GCDWebServer"
function runTests {
rm -rf "$PAYLOAD_DIR"
ditto -x -k "$PAYLOAD_ZIP" "$PAYLOAD_DIR"
find "$PAYLOAD_DIR" -type d -exec SetFile -d "1/1/2014" -m "1/1/2014" '{}' \; # ZIP archives do not preserve directories dates
TZ=GMT find "$PAYLOAD_DIR" -type d -exec SetFile -d "1/1/2014 00:00:00" -m "1/1/2014 00:00:00" '{}' \; # ZIP archives do not preserve directories dates
logLevel=2 $1 -mode "$2" -root "$PAYLOAD_DIR/Payload" -tests "$3"
}