From 6daf89d1916ed0e7f8342bb588cf41785403e3c0 Mon Sep 17 00:00:00 2001 From: Morris Jette <jette@schedmd.com> Date: Mon, 9 May 2016 11:49:31 -0700 Subject: [PATCH] update dw_wlm_cli emulator --- src/plugins/burst_buffer/cray/dw_wlm_cli | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/src/plugins/burst_buffer/cray/dw_wlm_cli b/src/plugins/burst_buffer/cray/dw_wlm_cli index 24c66ee0284..76f65d69119 100755 --- a/src/plugins/burst_buffer/cray/dw_wlm_cli +++ b/src/plugins/burst_buffer/cray/dw_wlm_cli @@ -5,10 +5,14 @@ if [ $2 == "create_persistent" ]; then echo 'created' fi if [ $2 == "data_in" ]; then - sleep 1 + sleep 100 +# echo 'badness...' +# exit 1 fi if [ $2 == "data_out" ]; then sleep 1 +# echo 'badness...' +# exit 1 fi if [ $2 == "destroy_persistent" ]; then sleep 0.1 @@ -23,12 +27,19 @@ if [ $2 == "paths" ]; then fi if [ $2 == "pre_run" ]; then sleep 0.1 +# echo 'badness...' +# exit 1 fi if [ $2 == "post_run" ]; then sleep 0.1 fi if [ $2 == "pools" ]; then - echo '{ "pools": [ { "id":"dwcache", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 } ] }' +# echo '{ "pools": [ { "id":"dwcache", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 } ] }' + echo '{ "pools": [ { "id":"dwcache", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 }, { "id":"test_pool", "units":"bytes", "granularity":16777216, "quantity":2048, "free":2048 } ] }' + +fi +if [ "$2" = "real_size" ] ; then + echo '{ "token":"job.1234", "capacity":17592186044416, "units":"bytes" }' fi if [ $2 == "setup" ]; then sleep 0.1 @@ -44,6 +55,7 @@ if [ $2 == "show_sessions" ]; then fi if [ $2 == "teardown" ]; then sleep 0.1 +# exit 1 fi exit 0 -- GitLab