Skip to content

Commit 5a6df94

Browse files
committed
! supress dcm agent exception stack in ci
1 parent 9b30b2c commit 5a6df94

File tree

4 files changed

+9
-16
lines changed

4 files changed

+9
-16
lines changed

library/src/test/java/com/alibaba/dcm/agent/DcmAgentTest.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import com.alibaba.dcm.DnsCacheManipulator;
44
import org.apache.commons.io.FileUtils;
5-
import org.junit.After;
65
import org.junit.Before;
76
import org.junit.Test;
87

@@ -35,15 +34,6 @@ public void setUp() throws Exception {
3534
DnsCacheManipulator.clearDnsCache();
3635
}
3736

38-
@After
39-
public void tearDown() throws Exception {
40-
System.out.println("============================================");
41-
System.out.println("Agent Output File Content");
42-
System.out.println("============================================");
43-
final String text = FileUtils.readFileToString(outputFile, UTF8);
44-
System.out.println(text);
45-
}
46-
4737
@Test
4838
public void test_agentmain_empty() throws Exception {
4939
DcmAgent.agentmain(" ");

scripts/codecov.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
set -eEuo pipefail
33
cd "$(dirname "$(readlink -f "$0")")"
44

5+
export DCM_AGENT_SUPRESS_EXCEPTION_STACK=true
6+
57
source ./common_build.sh
68
source ./prepare-jdk.sh
79

scripts/integration-test.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ set -eEuo pipefail
33
cd "$(dirname "$(readlink -f "$0")")"
44

55
export CI_TEST_MODE=true
6+
export DCM_AGENT_SUPRESS_EXCEPTION_STACK=true
67

78
source ./prepare-jdk.sh
89
source ./common_build.sh

scripts/prepare-jdk.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ __loadSdkman() {
1717

1818
curl -s get.sdkman.io | bash || die "fail to install sdkman"
1919
this_time_install_sdk_man=true
20-
fi
2120

22-
{
23-
echo sdkman_auto_answer=true
24-
echo sdkman_auto_selfupdate=false
25-
echo sdkman_disable_auto_upgrade_check=true
26-
} >>"$HOME/.sdkman/etc/config"
21+
{
22+
echo sdkman_auto_answer=true
23+
echo sdkman_auto_selfupdate=false
24+
echo sdkman_disable_auto_upgrade_check=true
25+
} >>"$HOME/.sdkman/etc/config"
26+
fi
2727

2828
set +u
2929
# shellcheck disable=SC1090

0 commit comments

Comments
 (0)