Skip to content

Commit

Permalink
fix debug printing of filesystems types (use mount)
Browse files Browse the repository at this point in the history
  • Loading branch information
cre4ture committed Mar 13, 2024
1 parent 42ad9f9 commit 7099408
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
8 changes: 3 additions & 5 deletions util/android-commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ snapshot() {

apt_upgrade_all_packages

install_packages_via_ssh_using_apt "rust binutils openssl tar"
install_packages_via_ssh_using_apt "rust binutils openssl tar mount-utils"

echo "Read /proc/cpuinfo"
run_command_via_ssh "cat /proc/cpuinfo"
Expand Down Expand Up @@ -573,8 +573,7 @@ build() {

reinit_ssh_connection

echo "Read /proc/cpuinfo"
run_command_via_ssh "cat /proc/cpuinfo"
run_script_file_via_ssh "$this_repo/util/android-scripts/collect-info.sh"

command="export CARGO_TERM_COLOR=always;
export CARGO_INCREMENTAL=0; \
Expand All @@ -589,8 +588,7 @@ tests() {

reinit_ssh_connection

echo "Read /proc/cpuinfo"
run_command_via_ssh "cat /proc/cpuinfo"
run_script_file_via_ssh "$this_repo/util/android-scripts/collect-info.sh"

run_script_file_via_ssh "$this_repo/util/android-scripts/run-tests.sh" || return

Expand Down
4 changes: 2 additions & 2 deletions util/android-scripts/collect-info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@

# spell-checker:ignore nextest watchplus PIPESTATUS

echo "system ressources - file systems:"
df -Th
echo "system ressources - RAM:"
free -hm
echo "system ressources - CPU:"
lscpu
echo "system ressources - file systems:"
mount

echo "$HOME"
PATH=$HOME/.cargo/bin:$PATH
Expand Down
2 changes: 1 addition & 1 deletion util/android-scripts/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ run_tests_in_subprocess() (
}

# observe (log) every 2 seconds the system resource usage to judge if we are at a limit
watchplus 2 df -Th &
watchplus 2 df -h &
watchplus 2 free -hm &

nextest_params=(--profile ci --hide-progress-bar --features feat_os_unix_android)
Expand Down

0 comments on commit 7099408

Please sign in to comment.