functests: Alter the order of checks

Check whether `repeated_read_cmd` returned nil and did not actually run nvim or 
it did, but still returned nil for whatever reason.
This commit is contained in:
ZyX
2017-03-18 17:49:47 +03:00
parent 3cd7bf31e2
commit 1ea7541f65

View File

@@ -51,9 +51,9 @@ describe('Command-line option', function()
local stdout = repeated_read_cmd(
nvim_prog, '-u', 'NONE', '-i', 'NONE', '--headless', '-s', dollar_fname,
fname)
eq('', stdout)
local attrs = lfs.attributes(fname)
eq(#('100500\n'), attrs.size)
eq('', stdout)
end)
end)
end)