File tree 2 files changed +4
-5
lines changed
2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -10,15 +10,16 @@ make -j`nproc --all` |& tee ./unit-tests-build-result.txt
10
10
exitstatus=${PIPESTATUS[0]}
11
11
echo $exitstatus > ./build-status.txt
12
12
echo 0 > tests/unit/run-tests-status.txt
13
- env CTEST_OUTPUT_ON_FAILURE=1 make test | & tee >( ansi2html > ./tests/unit/logs/artifacts.html)
13
+ export TEST_ARTIFACT_FILE=/__w/libks/libks/tests/unit/logs/artifacts.html
14
+ env CTEST_OUTPUT_ON_FAILURE=1 make test | & tee >( ansi2html > $TEST_ARTIFACT_FILE )
14
15
exitstatus=${PIPESTATUS[0]}
15
16
ls -al
16
17
ls -al tests/unit/logs
17
18
18
19
echo " Exist status is $exitstatus "
19
20
20
21
if [ " $exitstatus " != " 0" ]]; then
21
- echo " TEST_ARTIFACT_FILE=/__sw/libks/libks/tests/unitlogs/artifacts.html " >> $GITHUB_OUTPUT
22
+ echo " TEST_ARTIFACT_FILE=$TEST_ARTIFACT_FILE " >> $GITHUB_OUTPUT
22
23
fi
23
24
24
25
exit $exitstatus
Original file line number Diff line number Diff line change @@ -60,9 +60,7 @@ int main(int argc, char **argv)
60
60
/* the clock on osx seems to be particularly bad at being accurate, we need a bit more room for error*/
61
61
ok ( diff > 1900 && diff < 2500 );
62
62
#else
63
- // ok( diff > 1950 && diff < 2050 );
64
- // NOTE: uncomment the line above and delete the line below, only did this to test failure.
65
- ok (diff == 0 );
63
+ ok ( diff > 1950 && diff < 2050 );
66
64
#endif
67
65
ks_shutdown ();
68
66
done_testing ();
You can’t perform that action at this time.
0 commit comments