Submitter | Augie Fackler |
---|---|
Date | July 16, 2015, 4:07 p.m. |
Message ID | <3cf16ed00c9ffabfc1a5.1437062866@imladris.local> |
Download | mbox | patch |
Permalink | /patch/10008/ |
State | Accepted |
Headers | show |
Comments
Patch
diff --git a/tests/test-gc.t b/tests/test-gc.t --- a/tests/test-gc.t +++ b/tests/test-gc.t @@ -29,7 +29,8 @@ # gc client cache - $ find $CACHEDIR -type f -exec touch -d "last week" {} \; + $ lastweek=`python -c 'import datetime,time; print datetime.datetime.fromtimestamp(time.time() - (86400 * 7)).strftime("%y%m%d%H%M")'` + $ find $CACHEDIR -type f -exec touch -t $lastweek {} \; $ find $CACHEDIR -type f | wc -l 3