提交 e5277998 创建 作者: 王晓庆's avatar 王晓庆

3

上级 e0a88287
流水线 #118174 已失败 于阶段
用时 13 秒
......@@ -14,7 +14,6 @@ case1:
<<: *codecode-runner
script:
- /opt/mssql/bin/sqlservr > /dev/null &
- sleep 10s
- python3 testcases.py 1
- diff output1.txt user_output1.txt -b -B -y -i -W 100
- echo -e "\n*******************************************\nexec-score 60\n*******************************************\n"
......@@ -41,7 +40,6 @@ case2:
<<: *codecode-runner
script:
- /opt/mssql/bin/sqlservr > /dev/null &
- sleep 10s
- python3 testcases.py 2
- diff output2.txt user_output2.txt -b -B -y -i -W 100
- echo -e "\n*******************************************\nexec-score 80\n*******************************************\n"
......@@ -68,7 +66,6 @@ case3:
<<: *codecode-runner
script:
- /opt/mssql/bin/sqlservr > /dev/null &
- sleep 10s
- python3 testcases.py 3
- diff output3.txt user_output3.txt -b -B -y -i -W 100
- echo -e "\n*******************************************\nexec-score 100\n*******************************************\n"
......
......@@ -65,7 +65,7 @@ if __name__ == '__main__':
cursor = conn.cursor()
# 只有第一次运行case时才建库、建表
if sys.argv[1].to_i == 1:
if int(sys.argv[1]) == 1:
# 创建测试数据库
createdb_sql = parse_sql('createdb.sql')
conn.autocommit(True)
......
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论