summaryrefslogtreecommitdiffstats
path: root/selftest
diff options
context:
space:
mode:
authorNeels Hofmeyr <neels@hofmeyr.de>2017-05-10 13:46:11 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2017-05-11 12:33:00 +0200
commita6278b7fd0887da753ca5787cce3dc239fac8c71 (patch)
tree375e05f797dff1e8f1e98f60b196c8fbdd9bce57 /selftest
parent2321a19aa52fc55c07436b062390eef7c440750d (diff)
cosmetic: lock test: add quotes
Mostly to clarify an empty lock in the end. Change-Id: If80960b331d30125e97878d52edba9b4a63e87c7
Diffstat (limited to 'selftest')
-rw-r--r--selftest/lock_test.ok8
-rwxr-xr-xselftest/lock_test.sh8
2 files changed, 8 insertions, 8 deletions
diff --git a/selftest/lock_test.ok b/selftest/lock_test.ok
index d7152ac..604767b 100644
--- a/selftest/lock_test.ok
+++ b/selftest/lock_test.ok
@@ -1,4 +1,4 @@
-launched first, locked by: long name
-launched second, locked by: long name
-waited, locked by: shorter
-waited more, locked by:
+launched first, locked by: 'long name'
+launched second, locked by: 'long name'
+waited, locked by: 'shorter'
+waited more, locked by: ''
diff --git a/selftest/lock_test.sh b/selftest/lock_test.sh
index ad531eb..049c4d9 100755
--- a/selftest/lock_test.sh
+++ b/selftest/lock_test.sh
@@ -11,17 +11,17 @@ python3 ./lock_test_help.py "$dir" "$n1" &
while [ ! -f "$dir/lock_test" ]; do
sleep .1
done
-echo "launched first, locked by: $(cat "$dir/lock_test")"
+echo "launched first, locked by: '$(cat "$dir/lock_test")'"
python3 ./lock_test_help.py "$dir" "$n2" &
-echo "launched second, locked by: $(cat "$dir/lock_test")"
+echo "launched second, locked by: '$(cat "$dir/lock_test")'"
rm "$f1"
while [ ! -f "$f1.done" ]; do
sleep .1
done
-echo "waited, locked by: $(cat "$dir/lock_test")"
+echo "waited, locked by: '$(cat "$dir/lock_test")'"
rm "$f2"
while [ ! -f "$f2.done" ]; do
sleep .1
done
-echo "waited more, locked by: $(cat "$dir/lock_test")"
+echo "waited more, locked by: '$(cat "$dir/lock_test")'"
rm -rf "$dir"