-
Type: Bug
-
Resolution: Fixed
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
Fully Compatible
-
ALL
-
TIG 2017-08-21
-
0
The ${aws_ec2_yml} expansion isn't set, which causes the if [ -f ${aws_ec2_yml|} ]; then condition to evaluate to true. See this Evergreen task as an example of when this was triggered.
[2017/08/11 09:22:55.295] # Call hang_analyzer.py script for tasks that are running remote mongo processes [2017/08/11 09:22:55.295] # The file will define the remote's and . [2017/08/11 09:22:55.295] # Any task which uses remote processes will have previously loaded this file to set these [2017/08/11 09:22:55.295] # expansions macros. [2017/08/11 09:22:55.295] if [ -f ]; then [2017/08/11 09:22:55.295] core_ext=core [2017/08/11 09:22:55.295] if [ "Windows_NT" = "$OS" ]; then [2017/08/11 09:22:55.295] core_ext=mdmp [2017/08/11 09:22:55.295] fi [2017/08/11 09:22:55.295] ssh_options=" -o GSSAPIAuthentication=no -o CheckHostIP=no -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o ConnectTimeout=10 -o ConnectionAttempts=10" [2017/08/11 09:22:55.295] # buildscripts must be installed in on the remote host. [2017/08/11 09:22:55.295] remote_dir=. [2017/08/11 09:22:55.296] cmds="PATH=\"/opt/mongodbtoolchain/gdb/bin:\$PATH\" $sudo python buildscripts/hang_analyzer.py $hang_analyzer_option" [2017/08/11 09:22:55.296] python buildscripts/remote_operations.py \ [2017/08/11 09:22:55.296] --verbose \ [2017/08/11 09:22:55.296] --userHost $USER@ \ [2017/08/11 09:22:55.296] --sshOptions "$ssh_options" \ [2017/08/11 09:22:55.296] --retries 10 \ [2017/08/11 09:22:55.296] --commands "$cmds" \ [2017/08/11 09:22:55.296] --commandDir [2017/08/11 09:22:55.296] python buildscripts/remote_operations.py \ [2017/08/11 09:22:55.296] --verbose \ [2017/08/11 09:22:55.296] --userHost $USER@ \ [2017/08/11 09:22:55.296] --operation "copy_from" \ [2017/08/11 09:22:55.296] --sshOptions "$ssh_options" \ [2017/08/11 09:22:55.296] --retries 10 \ [2017/08/11 09:22:55.296] --file "/debugger*.*" \ [2017/08/11 09:22:55.296] --file "/*.$core_ext" [2017/08/11 09:22:55.296] fi [2017/08/11 09:22:55.490] Usage: remote_operations.py [options] [2017/08/11 09:22:55.490] [2017/08/11 09:22:55.490] remote_operations.py: error: --commandDir option requires an argument