diff options
| author | ruki <[email protected]> | 2026-07-30 22:48:00 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-07-30 22:48:00 +0800 |
| commit | cb97bd6d308b83ab4eca3f0462d2690dd66960b5 (patch) | |
| tree | 22cd318c519c8db434a383370da7b0163728f18c /tests/plugins/repository/test.lua | |
| parent | ba5ca9bc89f2511a53266577a17a64fb26932a96 (diff) | |
improve plugin structure
Diffstat (limited to 'tests/plugins/repository/test.lua')
| -rw-r--r-- | tests/plugins/repository/test.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/plugins/repository/test.lua b/tests/plugins/repository/test.lua index 0c4df3227..4f1347317 100644 --- a/tests/plugins/repository/test.lua +++ b/tests/plugins/repository/test.lua @@ -36,10 +36,10 @@ function main(t) end cleanup() - -- mock repository with installed and available plugins - _write_plugin(path.join(repodir, "plugins", hello_name), hello_name, "repo-ok") - _write_plugin(path.join(repodir, "plugins", formatter_name), formatter_name, "format-ok") - _write_plugin(path.join(repodir, "plugins", available_name), available_name, "available-ok") + -- mock repository with installed and available plugins (packages-like layout: plugins/<first-letter>/<name>) + _write_plugin(path.join(repodir, "plugins", hello_name:sub(1, 1), hello_name), hello_name, "repo-ok") + _write_plugin(path.join(repodir, "plugins", formatter_name:sub(1, 1), formatter_name), formatter_name, "format-ok") + _write_plugin(path.join(repodir, "plugins", available_name:sub(1, 1), available_name), available_name, "available-ok") os.mkdir(path.directory(cachefile)) local cache = os.isfile(cachefile) and io.load(cachefile) or {} cache.repositories = cache.repositories or {} |
