From ad8d415e3aa93de14fea07a83433d834d5fb64c5 Mon Sep 17 00:00:00 2001 From: Thiago de Arruda Date: Fri, 10 Apr 2015 23:49:32 -0300 Subject: [PATCH] test: Remove indeterminism in job_spec.lua pty tests --- test/functional/job/job_spec.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/job/job_spec.lua b/test/functional/job/job_spec.lua index 6bcae62ebf..8191b63a1c 100644 --- a/test/functional/job/job_spec.lua +++ b/test/functional/job/job_spec.lua @@ -338,7 +338,7 @@ describe('jobs', function() data[i] = data[i]:gsub('\n', '\000') end rv = table.concat(data, '\n') - rv = rv:gsub('\r\n$', '') + rv = rv:gsub('\r\n$', ''):gsub('^\r\n', '') if rv ~= '' then break end