From: Sergey Matveev Date: Thu, 29 Feb 2024 08:29:31 +0000 (+0300) Subject: Do not depend on non-portable stat command X-Git-Tag: v2.6.2^0 X-Git-Url: http://www.git.cypherpunks.ru/?p=goredo.git;a=commitdiff_plain;h=41e749fce9ceb6cf557e1282475db5bb253cf638 Do not depend on non-portable stat command --- diff --git a/doc/news.texi b/doc/news.texi index f6bcdd5..c7d0bdd 100644 --- a/doc/news.texi +++ b/doc/news.texi @@ -2,11 +2,18 @@ @cindex news @unnumbered News +@anchor{Release 2_6_2} +@section Release 2.6.2 +@itemize +@item + Integration tests do not depend on non-portal @command{stat} command. +@end itemize + @anchor{Release 2_6_1} @section Release 2.6.1 @itemize @item - Tests do not depend on Python or Git. + Integration tests do not depend on Python or Git. @end itemize @anchor{Release 2_6_0} diff --git a/t/goredo-chmoding.t b/t/goredo-chmoding.t index 7986697..c283aba 100755 --- a/t/goredo-chmoding.t +++ b/t/goredo-chmoding.t @@ -8,7 +8,7 @@ export REDO_TOP_DIR="`pwd`" REDO_NO_PROGRESS=1 echo echo ok > foo.do redo foo test_expect_success "foo is non executable" '[ ! -x foo ]' -inode0=`stat -f %i foo` +inode0=`perl -e '@s=stat "foo"; print "$s[1]\n"'` cat > foo.do < \$3 @@ -16,7 +16,7 @@ chmod +x \$3 EOF redo foo test_expect_success "foo is executable" '[ -x foo ]' -inode1=`stat -f %i foo` +inode1=`perl -e '@s=stat "foo"; print "$s[1]\n"'` test_expect_success "foo was not renamed" '[ $inode0 = $inode1 ]' test_done diff --git a/usage.go b/usage.go index 566bca5..a64c375 100644 --- a/usage.go +++ b/usage.go @@ -22,7 +22,7 @@ import ( ) const ( - Version = "2.6.1" + Version = "2.6.2" Warranty = `Copyright (C) 2020-2024 Sergey Matveev This program is free software: you can redistribute it and/or modify