]> www.infradead.org Git - users/hch/blktests.git/commitdiff
tests/srp/rc: Make the output of srp_single_login() less confusing
authorBart Van Assche <bvanassche@acm.org>
Fri, 22 Feb 2019 22:17:42 +0000 (14:17 -0800)
committerBart Van Assche <bvanassche@acm.org>
Fri, 22 Feb 2019 23:16:28 +0000 (15:16 -0800)
Displaying $PWD is not useful inside srp_single_login(). Hence leave
$PWD out.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
tests/srp/rc

index 20774bbe258a031e5c43e56960a9975a26e94925..e10ebac360721ebb924f1b359e1593ec4bc06c94 100755 (executable)
@@ -115,7 +115,7 @@ use_blk_mq() {
 # Write SRP login string $1 into SRP login sysfs attribute $2.
 srp_single_login() {
        {
-               echo "echo $1 > $PWD/$2"
+               echo "echo $1 > $2"
                echo "$1" >"$2"
        } &>>"$FULL"
 }