Skip to content

Commit a91a757

Browse files
committed
Merge pull request #9 from tyru/test-relpath
show relative path of test scripts
2 parents 7d5ae1c + c1be72e commit a91a757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/run.vim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ function! s:run()
1919
call writefile([v:exception], outfile)
2020
endtry
2121
if system(printf('diff %s %s', shellescape(okfile), shellescape(outfile))) == ""
22-
let line = printf('%s => ok', fnamemodify(vimfile, ':t'))
22+
let line = printf('%s => ok', fnamemodify(vimfile, ':.'))
2323
else
24-
let line = printf('%s => ng', fnamemodify(vimfile, ':t'))
24+
let line = printf('%s => ng', fnamemodify(vimfile, ':.'))
2525
endif
2626
call append(line('$'), line)
2727
endfor

0 commit comments

Comments
 (0)