@cryptotaxi247 / kubo / commits / 9cf718932

ipfs ls: make sure to fully create testData

Henry committed Mar 1, 2015 at 13:06 UTC 9cf718932e19bbc6402101ef1d09c9bbb91869a9
1 file changed +7 -10
test/sharness/t0045-ls.sh
+7 -10
@@ -9,16 +9,15 @@ test_description="Test ls command"
9 . lib/test-lib.sh
10
11 test_init_ipfs
12 -test_launch_ipfs_daemon
12
13 test_expect_success "'ipfs add -r testData' succeeds" '
15 - mkdir -p testData/{d1,d2}
16 - echo "test" > testData/f1
17 - echo "data" > testData/f2
18 - echo "hello" > testData/d1/a
19 - random 128 42 > testData/d1/128
20 - echo "world" > testData/d2/a
21 - random 1024 42 > testData/d2/1024
14 + mkdir -p testData/{d1,d2} && \
15 + echo "test" > testData/f1 && \
16 + echo "data" > testData/f2 && \
17 + echo "hello" > testData/d1/a && \
18 + random 128 42 > testData/d1/128 && \
19 + echo "world" > testData/d2/a && \
20 + random 1024 42 > testData/d2/1024 && \
21 ipfs add -r testData > actual_add
22 '
23
@@ -64,6 +63,4 @@ EOF
63 test $(diff actual_ls expected_ls | wc -l) -eq 0
64 '
65
67 -test_kill_ipfs_daemon
68 -
66 test_done