Skip to content

Commit

Permalink
run_qemu.sh --debug: add -x for setup_*() in update_existing_rootfs()
Browse files Browse the repository at this point in the history
Propagate -x all the way when using --debug.

Signed-off-by: Marc Herbert <[email protected]>
  • Loading branch information
marc-hb authored and stellarhopper committed Dec 18, 2024
1 parent 8572fda commit f5daad4
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions run_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -910,8 +910,12 @@ __update_existing_rootfs()
sudo rm -rf "$selftests_dir"
fi

sudo -E bash -c "$(declare -f setup_depmod); _arg_nfit_test=$_arg_nfit_test; _arg_cxl_test=$_arg_cxl_test; kver=$kver; setup_depmod $inst_prefix"
sudo -E bash -c "$(declare -f setup_autorun); _arg_autorun=$_arg_autorun; setup_autorun $inst_prefix"
if [[ $_arg_debug == 'on' ]]; then
local _trace_sh='-x'
fi
sudo -E bash $_trace_sh -c "$(declare -f setup_depmod); _arg_nfit_test=$_arg_nfit_test; _arg_cxl_test=$_arg_cxl_test; kver=$kver; setup_depmod $inst_prefix"
sudo -E bash $_trace_sh -c "$(declare -f setup_autorun); _arg_autorun=$_arg_autorun; setup_autorun $inst_prefix"

umount_rootfs 2
}

Expand Down

0 comments on commit f5daad4

Please sign in to comment.