Skip to content

Commit

Permalink
Fixing and stabilizing github actions (#275)
Browse files Browse the repository at this point in the history
* add a necessary dependencie.

* remove a unnecessary step in ci.

* stabilize unstable tests by making them serial.
  • Loading branch information
utam0k authored Sep 6, 2021
1 parent 321ee0a commit ef9a92a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
override: true
- run: rustup component add rustfmt clippy
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev
- name: Check formatting
run: cargo fmt --all -- --check
working-directory: ${{matrix.dirs}}
Expand Down Expand Up @@ -74,8 +74,6 @@ jobs:
override: true
- run: sudo apt-get -y update
- run: sudo apt-get install -y pkg-config libsystemd-dev libdbus-glib-1-dev libelf-dev
- name: Build
run: ./build.sh --release
- name: Run tests
run: cargo test --no-fail-fast
- name: Run doc tests
Expand Down
2 changes: 2 additions & 0 deletions src/process/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,7 @@ mod tests {
use super::*;
use anyhow::{bail, Result};
use nix::{fcntl, sys, unistd};
use serial_test::serial;
use std::fs;

#[test]
Expand Down Expand Up @@ -594,6 +595,7 @@ mod tests {
}

#[test]
#[serial]
fn test_cleanup_file_descriptors() -> Result<()> {
// Open a fd without the CLOEXEC flag. Rust automatically adds the flag,
// so we use fcntl::open here for more control.
Expand Down

0 comments on commit ef9a92a

Please sign in to comment.