Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 6 additions & 12 deletions rapido
Original file line number Diff line number Diff line change
Expand Up @@ -85,20 +85,17 @@ rapido_cut()
exit 1
fi

pushd "$RAPIDO_DIR" > /dev/null
cut_script="cut/${testname//-/_}.sh"
cut_script="${RAPIDO_DIR}/cut/${testname//-/_}.sh"

if [[ ! -x $cut_script ]]; then
[[ -f $cut_script ]] \
&& echo "$cut_script lacks execute permission." \
|| echo "$testname not found. See \"rapido list\"."
popd > /dev/null
exit
fi

./$cut_script "${post_autorun_files[@]}"
"$cut_script" "${post_autorun_files[@]}"
local cut_status=$?
popd > /dev/null
[ $cut_status -ne 0 ] && exit $cut_status
[ -n "$boot_img" ] || exit 0
"${RAPIDO_DIR}/vm.sh"
Expand All @@ -109,16 +106,13 @@ rapido_list()
{
local t

pushd "$RAPIDO_DIR" > /dev/null

shopt -s nullglob
for t in cut/*.sh; do
[ -x "$t" ] || continue
for t in "$RAPIDO_DIR"/cut/*.sh; do
[[ -x "$t" ]] || continue
t="${t%.sh}"
t="${t//_/-}"
echo "${t#cut/}"
t="${t##*/cut/}"
echo "${t//_/-}"
done
popd > /dev/null
}

list_commands()
Expand Down
2 changes: 1 addition & 1 deletion selftest/test/002
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ set timeout 60
spawn ./rapido cut -B simple-example
expect {
timeout {exit 1}
"dracut: *** Creating initramfs image file"
"*** Creating initramfs image file"
}
expect {
timeout {exit 1}
Expand Down
1 change: 0 additions & 1 deletion tools/bash_completion
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#!/bin/bash
# SPDX-License-Identifier: (LGPL-2.1 OR LGPL-3.0)
# Copyright (C) SUSE LLC 2019-2022, all rights reserved.

Expand Down