From 2dbf0c220fc971c9493392a70c71954001fee7fd Mon Sep 17 00:00:00 2001 From: Claudio Bandera Date: Sun, 30 Aug 2015 23:04:16 +0200 Subject: Fixed unittests for Ubuntu --- test-directories.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test-directories.sh') diff --git a/test-directories.sh b/test-directories.sh index 86a441e..83c408f 100755 --- a/test-directories.sh +++ b/test-directories.sh @@ -1,3 +1,4 @@ +#!/bin/bash scriptDir="$(cd "$(dirname "$0")"; pwd)" source "$scriptDir/radar-base.sh" @@ -63,7 +64,8 @@ test_record_timestamp_in_repo() { test_time_to_update_when_timestamp_is_old() { cd $scriptDir - touch -A "-010000" "$(dot_git)/lastupdatetime" + newtimestamp=$(date -d "now -1 hour" +%Y%m%d%H%M) + touch -t $newtimestamp "$(dot_git)/lastupdatetime" assertTrue time_to_update } -- cgit v1.2.3