tests: Differentiate between local and online tests

This commit is contained in:
Donovan Glover 2023-06-10 20:07:37 -04:00
parent 53685b9e5e
commit e492d80d0b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65
2 changed files with 4 additions and 4 deletions

View File

@ -4,13 +4,13 @@ require "./methods/*"
check_top_level_imports("modules")
check_top_level_imports("overlays")
describe "./overlays/joshuto/default.nix" do
describe "./overlays/joshuto/default.nix", tags: "online" do
it "uses the latest joshuto commit" do
check_latest_commit("kamiyaa/joshuto", branch: "main")
end
end
describe "./overlays/rofi/default.nix" do
describe "./overlays/rofi/default.nix", tags: "online" do
it "uses the latest rofi-wayland commit" do
check_latest_commit("lbonn/rofi", branch: "wayland")
end

View File

@ -5,7 +5,7 @@ hint = ""
def check_top_level_imports(directory)
describe "./#{directory}/default.nix" do
it "imports all modules in ./#{directory}/" do
it "imports all modules in ./#{directory}/", tags: "local" do
all_modules = Dir.children(directory)
all_modules.delete("default.nix")
modules = File.read("./#{directory}/default.nix")
@ -18,7 +18,7 @@ def check_top_level_imports(directory)
hint = ""
end
it "only imports modules that exist in ./#{directory}/" do
it "only imports modules that exist in ./#{directory}/", tags: "local" do
all_modules = Dir.children(directory)
all_modules.delete("default.nix")