Fix i18n:test rake task

This commit is contained in:
Sarina Canelake
2013-11-18 15:21:40 -05:00
committed by Sarina Canelake
parent fbf37c4c3d
commit 55590f321a

View File

@@ -67,7 +67,8 @@ namespace :i18n do
desc "Run tests for the internationalization library"
task :test => "i18n:validate:gettext" do
test = File.join(REPO_ROOT, "i18n", "tests")
sh("nosetests #{test}")
pythonpath_prefix = "PYTHONPATH=#{REPO_ROOT}/i18n:$PYTHONPATH"
sh("#{pythonpath_prefix} nosetests #{test}")
end
end