Closed rajanikantchirmade closed 5 years ago
Nice work, Rajanikant! :thumbsup_tone1:
I have a couple of questions, which I will ask in a separate MR.
reopened
closed
I can see the updated comment in the source code. Thanks!
Yes, it is working. Please check output attached. eos-167-test.log.rtf
Returned $1 and not $?. check_io_return() clean up files and return last error passed to it.
Yes, removed.
Using two clovis apps, which required local endpoints.
If passed same endpoint to next clovis app it failing to in RC. I think that endpoint still in use and hence passing endpoint of next clovis app provisioned.
Done. Thank you.
added 1 commit
changed this line in version 9 of the diff
@rajanikant.chirmade Does this ST actually work?
What exactly is “checked” by this function? rm -rf
never fails. And if it did fail, return
statement would not be reached, because of set -e
(set by st/common
, which is sourced at line 6).
Not needed — H0_SRC_DIR
and M0_SRC_DIR
are set by h0
. Please use h0 run-st t_1plus0.start-stop
to run this script.
added 1 commit
By the results of discussion with Max Medved I'll mark this comment as invalid. We do need the file to be random to be sure that the file was properly stored and copied by mero.
changed this line in version 7 of the diff
Can you please elaborate what should actually be fixed?
While reading the comment I don't quite understand whether it is a description what you are addressing or what you are working around. Since I'm probably not the only one who'll get confused here, maybe it's worthwhile to add clarity.
Reading from /dev/urandom
can bring significant performance impact. Do you really need the content be of random garbage bytes? Will /dev/zero
work here?
I would suggest to correct next three lines as follows:
LOG_FILE="$(mktemp --suffix _log_file)"
SRC_OBJ="$(mktemp --suffix _src_file)"
DEST_OBJ="$(mktemp --suffix _dest_file)"
The reason is that, in "$(mktemp)_log_file"
expression, the file created by $(mktemp)
will never be removed in your test. Moreover, mktemp guarantees that the file it returns will exist (while file "$(mktemp)_log_file"
will obviously not).
added 1 commit
added 1 commit
added 1 commit
added 1 commit
added 1 commit
Closes EOS-167