-
Notifications
You must be signed in to change notification settings - Fork 0
fix(test): add roborev to shell coverage spec #1751
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,35 @@ | ||||||
| Describe 'home-manager/services/roborev/activate.sh' | ||||||
| SCRIPT="$PWD/home-manager/services/roborev/activate.sh" | ||||||
|
|
||||||
| It 'uses bash shebang' | ||||||
| When run bash -c "head -1 '$SCRIPT'" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The use of
Suggested change
|
||||||
| The output should include '#!/usr/bin/env bash' | ||||||
| End | ||||||
|
|
||||||
| It 'creates the data directory' | ||||||
| When run bash -c "grep 'mkdir' '$SCRIPT'" | ||||||
| The output should include 'mkdir -p' | ||||||
| End | ||||||
|
|
||||||
| It 'sets restrictive permissions on data directory' | ||||||
| When run bash -c "grep 'chmod' '$SCRIPT'" | ||||||
| The output should include 'chmod 700' | ||||||
| End | ||||||
| End | ||||||
|
|
||||||
| Describe 'home-manager/services/roborev/default.nix' | ||||||
| It 'enables on galactica and matic only' | ||||||
| When run bash -c "grep 'isGalactica || isMatic' '$PWD/home-manager/services/roborev/default.nix'" | ||||||
| The output should include 'isGalactica || isMatic' | ||||||
| End | ||||||
|
|
||||||
| It 'runs roborev daemon run' | ||||||
| When run bash -c "grep 'daemon' '$PWD/home-manager/services/roborev/default.nix'" | ||||||
| The output should include '"daemon"' | ||||||
| End | ||||||
|
|
||||||
| It 'passes data dir to activate script' | ||||||
| When run cat "$PWD/home-manager/services/roborev/default.nix" | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using
Suggested change
References
|
||||||
| The output should include '"${./activate.sh}" "${dataDir}"' | ||||||
| End | ||||||
| End | ||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -405,6 +405,7 @@ home-manager/services/obsidian/obsidian-headless.sh | |
| home-manager/services/openclaw/activate.sh | ||
| home-manager/services/paperclip/activate.sh | ||
| home-manager/services/qmd/activate.sh | ||
| home-manager/services/roborev/activate.sh | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. While the script is correctly added to the |
||
| home-manager/modules/tailscale/activate-create-dirs.sh | ||
| home-manager/modules/tailscale/activate-install-service.sh | ||
| home-manager/modules/uv-globals/install-uv-globals.sh | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing standard spec header: every other
spec/activate_*_spec.shfile (activate_qmd_spec.sh,activate_paperclip_openclaw_spec.sh,activate_k3s_spec.sh,activate_neovim_spec.sh,activate_tailscale_spec.sh) begins with:This file starts directly with
Describe, which is inconsistent with the established convention and may surface SC2016/SC2329 warnings on the inline single-quotedbash -c "grep '...' '$SCRIPT'"patterns when shellcheck runs over the spec directory.