[augeas-devel] augeas: master - * tests/augtest: convert darwin's double slashes to single slash
David Lutterkort
lutter at fedoraproject.org
Fri Jun 12 22:05:51 UTC 2009
Gitweb: http://git.fedorahosted.org/git/augeas.git?p=augeas.git;a=commitdiff;h=091d9451f4466abac01fcbbf64d4ba79d3703dbb
Commit: 091d9451f4466abac01fcbbf64d4ba79d3703dbb
Parent: e4469340cfe77c7ec9a88a47528cbdc5196d1641
Author: Anders F Bjorklund <afb at users.sourceforge.net>
AuthorDate: Fri Jun 12 09:45:11 2009 +0200
Committer: David Lutterkort <lutter at redhat.com>
CommitterDate: Fri Jun 12 15:01:34 2009 -0700
* tests/augtest: convert darwin's double slashes to single slash
---
tests/augtest | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/augtest b/tests/augtest
index 7aa6d56..762eb90 100755
--- a/tests/augtest
+++ b/tests/augtest
@@ -68,7 +68,7 @@ args.each do |test|
success=$?.success?
msgs = []
diff.each do |file, exp|
- file = File::join(AUGEAS_ROOT, file)
+ file = File::join(AUGEAS_ROOT, file).gsub(%r{//}, '/')
if ! File::exist?("#{file}.augnew")
msgs << "Expected file #{file}.augnew"
success=false
@@ -87,7 +87,7 @@ args.each do |test|
end
end
end
- files = diff.keys.collect { |f| File::join(AUGEAS_ROOT, "#{f}.augnew") }
+ files = diff.keys.collect { |f| File::join(AUGEAS_ROOT, "#{f}.augnew").gsub(%r{//}, '/') }
Find.find(AUGEAS_ROOT) do |path|
if augnew?(path) && ! files.include?(path)
success=false
More information about the augeas-devel
mailing list