From 7b313b9e6bda540fd2ff2fa2c1e3c1d7134fbba3 Mon Sep 17 00:00:00 2001 From: ray-x Date: Tue, 16 Jul 2024 15:14:26 +1000 Subject: [PATCH] bugfix: go test option -r --- lua/go/gotest.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lua/go/gotest.lua b/lua/go/gotest.lua index 68495f1..d7160af 100644 --- a/lua/go/gotest.lua +++ b/lua/go/gotest.lua @@ -17,6 +17,7 @@ local long_opts = { count = 'n', tags = 't', fuzz = 'f', + run = 'r', bench = 'b', metric = 'm', select = 's', @@ -26,7 +27,7 @@ local long_opts = { } local sep = require('go.utils').sep() -local short_opts = 'a:cC:b:fFmn:pst:rv' +local short_opts = 'a:cC:b:fFmn:pst:r:v' local bench_opts = { '-benchmem', '-cpuprofile', 'profile.out' } local is_windows = utils.is_windows() @@ -209,6 +210,7 @@ local function cmd_builder(path, args) table.insert(cmd, optarg['P']) end + log(optarg) if optarg['r'] then log('run test', optarg['r']) table.insert(cmd, '-test.run')