Skip to content

Commit

Permalink
tests: Couple minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
obiwac committed Nov 24, 2024
1 parent c506351 commit 04cf419
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/chown.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ SUDO rm -rf tests/chown/.bob $INSTALL_PATH
USER=bobtestuser

if [ $(uname) = "Linux" ] || [ $(uname) = "FreeBSD" ]; then
useradd -m $USER
SUDO useradd -m $USER
elif [ $(uname) = "Darwin" ]; then
out=$(SUDO sysadminctl -addUser $USER 2>&1)
out=$($SUDO sysadminctl -addUser $USER 2>&1)

if [ $? != 0 ]; then
echo "Failed to create user: $out" >&2
Expand Down
2 changes: 1 addition & 1 deletion tests/run_path_traversal_order.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

out=$(bob -C tests/run_path_traversal_order run 2>/dev/null)

if [ $? == 0 ]; then
if [ $? = 0 ]; then
echo "\$PATH was not set in order to find command; running should not have succeeded: $out" >&2
exit 1
fi
Expand Down

0 comments on commit 04cf419

Please sign in to comment.