cwd=$(readlink "/proc/${pid}/cwd")
- is "$cwd" "$working_dir" "Working directory changed"
+ is "${cwd:-no working directory found}" "$working_dir" "Working directory changed"
stop_lttng_relayd
rm -rf "$working_dir"
ok $? "Found lttng-relayd"
cwd=$(readlink "/proc/${pid}/cwd")
-
- is "$cwd" "$expected_working_dir" "Working directory is $expected_working_dir"
+ is "${cwd:-no working directory found}" "$expected_working_dir" "Working directory is $expected_working_dir"
stop_lttng_relayd
rm -rf "$working_dir"
ok $? "Found lttng-relayd"
cwd=$(readlink "/proc/${pid}/cwd")
-
- is "$cwd" "$working_dir" "Working directory changed"
+ is "${cwd:-no working directory found}" "$working_dir" "Working directory changed"
stop_lttng_relayd
rm -rf "$working_dir"
ok $? "Found lttng-relayd"
cwd=$(readlink "/proc/${pid}/cwd")
-
- is "$cwd" "$expected_working_dir" "Working directory is $expected_working_dir"
+ is "${cwd:-no working directory found}" "$expected_working_dir" "Working directory is $expected_working_dir"
stop_lttng_relayd
rm -rf "$working_dir"
ok $? "Found lttng-relayd"
cwd=$(readlink "/proc/${pid}/cwd")
- is "$cwd" "$working_dir" "Working directory changed"
+ is "${cwd:-no working directory found}" "$working_dir" "Working directory changed"
grep -q "$output_pattern" "${RELAYD_ERROR_OUTPUT_DEST}"
ok $? "Warning about missing write permission is present"
ok $? "Found lttng-relayd"
cwd=$(readlink "/proc/$pid/cwd")
-
- is "$cwd" "$working_dir" "Working directory changed"
+ is "${cwd:-no working directory found}" "$working_dir" "Working directory changed"
stop_lttng_relayd
rm -rf "$working_dir"
ok $? "Found lttng-relayd"
cwd=$(readlink "/proc/$pid/cwd")
-
- is "$cwd" "$working_dir_cmdline" "Working directory is the one from command line"
+ is "${cwd:-no working directory found}" "$working_dir_cmdline" "Working directory is the one from command line"
stop_lttng_relayd
rm -rf "$working_dir_env" "$working_dir_cmdline"