Skip to content

Commit

Permalink
add test backtraces
Browse files Browse the repository at this point in the history
  • Loading branch information
ripytide committed Oct 20, 2024
1 parent 25f7a25 commit 00375a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/check.yml → .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,6 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Cargo Test
run: cargo test --verbose
run: RUST_BACKTRACE=full cargo test --verbose --color never
4 changes: 4 additions & 0 deletions src/backends/arch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ impl Backend for Arch {
mut packages: BTreeMap<String, Self::InstallOptions>,
config: &Config,
) -> Result<BTreeMap<String, Self::InstallOptions>> {
if !command_found(config.arch_package_manager.as_command()) {
return Ok(BTreeMap::new());
}

let groups = run_command_for_stdout(
[
config.arch_package_manager.as_command(),
Expand Down

0 comments on commit 00375a6

Please sign in to comment.