diff options
Diffstat (limited to 'spec/upload_spec.lua')
-rw-r--r-- | spec/upload_spec.lua | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index cc0b606c..5f33c8d5 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
@@ -43,8 +43,12 @@ describe("luarocks upload #integration", function() | |||
43 | end) | 43 | end) |
44 | 44 | ||
45 | it("#gpg rockspec with --sign", function() | 45 | it("#gpg rockspec with --sign", function() |
46 | os.remove(testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec.asc") | 46 | local function cleanup() |
47 | os.remove(testing_paths.testrun_dir .. "/a_rock-1.0-1.src.rock.asc") | 47 | os.remove(testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec.asc") |
48 | os.remove(testing_paths.testrun_dir .. "/a_rock-1.0-1.src.rock.asc") | ||
49 | end | ||
50 | cleanup() | ||
51 | finally(cleanup) | ||
48 | print(run.luarocks("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123 --sign", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) | 52 | print(run.luarocks("upload " .. testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec " .. test_env.openssl_dirs .. " --api-key=123 --sign", {LUAROCKS_CONFIG = testing_paths.testrun_dir .. "/luarocks_site.lua"})) |
49 | end) | 53 | end) |
50 | 54 | ||