We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d8db2f commit fcb47ccCopy full SHA for fcb47cc
rootfs/addon/etc/init.d/lkp-bootstrap
@@ -47,16 +47,19 @@ read_kernel_cmdline_vars
47
# The job file is contained in the initrd -- no need to download it here.
48
49
[ -n "$job" ] || job=$(echo /lkp/scheduled/*/*.yaml) # in case CONFIG_PROC_FS is not set
50
-[ -e "$job" -o -e ${job%.yaml}.sh ] || {
51
- echo $job does not exist, quit from LKP
52
- exit 0 # to work with non-LKP boots
53
-}
54
55
-if [ "$job" != "${job%.sh}" ]; then
56
- . $job
+if [ ${job%.yaml} != $job ]; then
+ job_script=${job%.yaml}.sh
57
else
58
- . ${job%.yaml}.sh
+ job_script=$job
59
fi
+
+[ -e "$job_script" ] || {
+ echo $job_script does not exist, quit from LKP
+ exit 0 # to work with non-LKP boots
60
+}
61
62
+. $job_script
63
export_top_env
64
65
: ${user:=lkp}
0 commit comments