Skip to content

fix(run_multiload.sh): fix architecture detection, exit code handling, and temp file collisions - #59

Open
pohaosu wants to merge 1 commit into
google:masterfrom
pohaosu:fix/run-multiload-script-bugs
Open

pohaosu wants to merge 1 commit into
google:masterfrom
pohaosu:fix/run-multiload-script-bugs

Conversation

@pohaosu

@pohaosu pohaosu commented Sep 14, 2026

Copy link
Copy Markdown
Contributor
  • Use uname -m instead of uname -p (unknown on Linux) for architecture detection.
  • Exit with 1 instead of $? (0) when CPU count detection fails, and simplify lscpu parsing with awk.
  • Use mktemp instead of a static out.txt in parse() to avoid concurrent run collisions.
  • Quote test variables ([ -n "$1" ], [ -z "$cputhread_num" ]) and fix comment typos.

…, and temp file collisions

- Use `uname -m` instead of `uname -p` (`unknown` on Linux) for architecture detection.
- Exit with `1` instead of `$?` (`0`) when CPU count detection fails, and simplify `lscpu` parsing with `awk`.
- Use `mktemp` instead of a static `out.txt` in `parse()` to avoid concurrent run collisions.
- Quote test variables (`[ -n "$1" ]`, `[ -z "$cputhread_num" ]`) and fix comment typos.

Signed-off-by: Phineas Su <pohaosu@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant