xichen01 opened a new pull request, #8031:
URL: https://github.com/apache/ozone/pull/8031

   ## What changes were proposed in this pull request?
   
   Make robot tests print error messages in the Console instead of just 
outputting ’1! = 0‘.
   In this way, we can see the error message directly in CI.
   
   Example
   
   ```robot
   *** Test cases ***
   
   Test hadoop dfs
       ${dir} =          Format FS URL         ${SCHEME}     ${volume}    
${bucket}
       ${random} =        Generate Random String  5  [NUMBERS]
       ${result} =        Execute                    hdfs dfs1 -put 
/opt/hadoop/NOTICE.txt ${dir}/${PREFIX}-${random}
   ```
   output:
   ```bash
   
==============================================================================
   hadoop-2.10.2-hadoopfs-o3fs :: Test ozone fs with hadoopfs                   
 
   
==============================================================================
   Test hadoop dfs                                                       
   
   [ERROR] Command failed: hdfs dfs1 -put /opt/hadoop/NOTICE.txt 
o3fs://bucket1.volume1.om//ozone-31953
   Output: Error: Could not find or load main class dfs1
   
   Return code: 1
   
   | FAIL |
   1 != 0
   
------------------------------------------------------------------------------
   hadoop-2.10.2-hadoopfs-o3fs :: Test ozone fs with hadoopfs            | FAIL 
|
   1 critical test, 0 passed, 1 failed
   1 test total, 0 passed, 1 failed
   ```
   
   ## What is the link to the Apache JIRA
   https://issues.apache.org/jira/browse/HDDS-12521
   
   ## How was this patch tested?
   
   manual Test in local
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to