diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2019-04-26 17:07:40 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2019-04-26 19:02:39 -0300 |
commit | c451dd03115f87d0143d170fbdaf160e8627391e (patch) | |
tree | d8eae5ffa84f48d5ca61aee52852edf47f0327c3 | |
parent | d534a32241aab49c18bae1b21f40f856baa22ab0 (diff) | |
download | luarocks-c451dd03115f87d0143d170fbdaf160e8627391e.tar.gz luarocks-c451dd03115f87d0143d170fbdaf160e8627391e.tar.bz2 luarocks-c451dd03115f87d0143d170fbdaf160e8627391e.zip |
Tests: cleanup signature before signing
-rw-r--r-- | spec/pack_spec.lua | 2 | ||||
-rw-r--r-- | spec/upload_spec.lua | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/spec/pack_spec.lua b/spec/pack_spec.lua index 8b3612db..bea47811 100644 --- a/spec/pack_spec.lua +++ b/spec/pack_spec.lua | |||
@@ -54,6 +54,8 @@ describe("LuaRocks pack #integration", function() | |||
54 | assert(run.luarocks_bool("install say 1.2")) | 54 | assert(run.luarocks_bool("install say 1.2")) |
55 | assert(run.luarocks_bool("install luassert")) | 55 | assert(run.luarocks_bool("install luassert")) |
56 | assert(run.luarocks_bool("install say 1.0")) | 56 | assert(run.luarocks_bool("install say 1.0")) |
57 | os.delete("say-1.2-1.all.rock") | ||
58 | os.delete("say-1.2-1.all.rock.asc") | ||
57 | assert(run.luarocks_bool("pack say --sign")) | 59 | assert(run.luarocks_bool("pack say --sign")) |
58 | assert.is_truthy(lfs.attributes("say-1.2-1.all.rock")) | 60 | assert.is_truthy(lfs.attributes("say-1.2-1.all.rock")) |
59 | assert.is_truthy(lfs.attributes("say-1.2-1.all.rock.asc")) | 61 | assert.is_truthy(lfs.attributes("say-1.2-1.all.rock.asc")) |
diff --git a/spec/upload_spec.lua b/spec/upload_spec.lua index 947147d7..3f376d0d 100644 --- a/spec/upload_spec.lua +++ b/spec/upload_spec.lua | |||
@@ -41,6 +41,8 @@ describe("LuaRocks upload tests #integration", function() | |||
41 | end) | 41 | end) |
42 | 42 | ||
43 | it("#gpg rockspec with --sign", function() | 43 | it("#gpg rockspec with --sign", function() |
44 | os.remove(testing_paths.fixtures_dir .. "/a_rock-1.0-1.rockspec.asc") | ||
45 | os.remove(testing_paths.testrun_dir .. "/a_rock-1.0-1.src.rock.asc") | ||
44 | 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"})) | 46 | 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"})) |
45 | end) | 47 | end) |
46 | 48 | ||