Skip to content

Commit e6b27c2

Browse files
author
David Scott
committed
test: perform a resize through the local allocator
Signed-off-by: David Scott <[email protected]>
1 parent 9b92df3 commit e6b27c2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

setup.sh

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ mkdir -p /tmp/xenvm.d
3333
./xenvm.native format $LOOP --vg djstest --configdir /tmp/xenvm.d $MOCK_ARG
3434
./xenvmd.native --config ./test.xenvmd.conf --daemon
3535

36-
./xenvm.native set-vg-info --pvpath $LOOP -S /tmp/xenvmd djstest --local-allocator-path /tmp/xenvm-local-allocator --uri file://local/services/xenvmd/djstest --configdir /tmp/xenvm.d $MOCK_ARG
36+
./xenvm.native set-vg-info --pvpath $LOOP -S /tmp/xenvmd djstest --local-allocator-path /tmp/host1-socket --uri file://local/services/xenvmd/djstest --configdir /tmp/xenvm.d $MOCK_ARG
3737

3838
./xenvm.native lvcreate -n live -L 4 djstest --configdir /tmp/xenvm.d $MOCK_ARG
3939
./xenvm.native lvchange -ay /dev/djstest/live --configdir /tmp/xenvm.d $MOCK_ARG
@@ -46,7 +46,11 @@ mkdir -p /tmp/xenvm.d
4646
./xenvm.native host-create /dev/djstest host1 --configdir /tmp/xenvm.d $MOCK_ARG
4747
./xenvm.native host-connect /dev/djstest host1 --configdir /tmp/xenvm.d $MOCK_ARG
4848
cat test.local_allocator.conf.in | sed -r "s|@BIGDISK@|$LOOP|g" | sed -r "s|@HOST@|host1|g" > test.local_allocator.host1.conf
49-
./local_allocator.native --config ./test.local_allocator.host1.conf $MOCK_ARG > /dev/null &
49+
./local_allocator.native --daemon --config ./test.local_allocator.host1.conf $MOCK_ARG
50+
51+
sleep 30 # the local allocator daemonizes too soon
52+
53+
./xenvm.native lvextend /dev/djstest/live -L 128M --live --configdir /tmp/xenvm.d $MOCK_ARG
5054

5155
./xenvm.native host-create /dev/djstest host2 --configdir /tmp/xenvm.d $MOCK_ARG
5256
./xenvm.native host-connect /dev/djstest host2 --configdir /tmp/xenvm.d $MOCK_ARG

0 commit comments

Comments
 (0)